func (s *Stack[T]) Peek() (res T, err error) {
	if s.IsEmpty() {
		return res, errEmptyStack
	}
	return s.list.GetLastValue()
}
// 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
	}
	return s.list.GetLastValue()
}
func ( s * Stack [ T ] ) Peek ( ) ( res T , err error ) { if s . IsEmpty ( ) { return res , errEmptyStack } return s . list . GetLastValue ( ) }
Peek returns top of the stack
Peek returns top of the stack