top property

E get top

Returns the top element, without removing it.

Implementation

E get top => peek();