func (s *Stack) Remove(i int) int {
	v := s.a[i]
	for j := i; j < len(s.a)-1; j++ {
		s.a[j] = s.a[j+1]
	}
	s.a = s.a[:len(s.a)-1]
	if cap(s.a) >= 3*len(s.a) {
		s.resize()
	}
	return v
}
// Remove removes a value v from a stack

Remove removes a value v from a stack
// Remove removes a value v from a stack
func (s *Stack) Remove(i int) int {
	v := s.a[i]
	for j := i; j < len(s.a)-1; j++ {
		s.a[j] = s.a[j+1]
	}
	s.a = s.a[:len(s.a)-1]
	if cap(s.a) >= 3*len(s.a) {
		s.resize()
	}
	return v
}
func ( s * Stack ) Remove ( i int ) int { v := s . a [ i ] for j := i ; j < len ( s . a ) - 1 ; j ++ { s . a [ j ] = s . a [ j + 1 ] } s . a = s . a [ : len ( s . a ) - 1 ] if cap ( s . a ) >= 3 * len ( s . a ) { s . resize ( ) } return v }
Remove removes a value v from a stack
Remove removes a value v from a stack