func (s *Stack[T]) GetMinMax() (min T, max T, err error) {
	if s.IsEmpty() {
		return min, max, errEmptyStack
	}

	minMaxInterface, err := s.minMaxStack.Peek()
	minMax := minMaxInterface
	return minMax[0], minMax[1], err
}
// GetMinMax returns the min and max values
GetMinMax returns the min and max values
// GetMinMax returns the min and max values
func (s *Stack[T]) GetMinMax() (min T, max T, err error) {
	if s.IsEmpty() {
		return min, max, errEmptyStack
	}
	minMaxInterface, err := s.minMaxStack.Peek()
	minMax := minMaxInterface
	return minMax[0], minMax[1], err
}
func ( s * Stack [ T ] ) GetMinMax ( ) ( min T , max T , err error ) { if s . IsEmpty ( ) { return min , max , errEmptyStack } minMaxInterface , err := s . minMaxStack . Peek ( ) minMax := minMaxInterface return minMax [ 0 ] , minMax [ 1 ] , err }
GetMinMax returns the min and max values
GetMinMax returns the min and max values