func (s *Stack[T]) Peek() (res T, err error) {
	if s.IsEmpty() {
		return res, errEmptyStack
	}

	value := s.array[s.Size()-1]
	return value, nil
}
// Peek returns top of the stack
Peek returns top of the stack
// Peek returns top of the stack
func (s *Stack[T]) Peek() (res T, err error) {
	if s.IsEmpty() {
		return res, errEmptyStack
	}
	value := s.array[s.Size()-1]
	return value, nil
}
func ( s * Stack [ T ] ) Peek ( ) ( res T , err error ) { if s . IsEmpty ( ) { return res , errEmptyStack } value := s . array [ s . Size ( ) - 1 ] return value , nil }
Peek returns top of the stack
Peek returns top of the stack