top()
top() : mixed
Return the 'top' of the list (lifo/fifo/etc)
Does not 'pop' the value off of the list
Returns
mixed —The top value of the list
List Interface - Defines basic list functions
A list can be several things: a stack, a queue, a ring buffer, etc. This list interface defines basic list operators that would exist on any list, be it a stack, a queue, a ring buffer, etc.
CHANGELOG
1.0: Created ListInterface - May 16th, 2013 2.0: Refactored and re-formatted for inclusion in primus - April 11th, 2015 3.0: reformatted for inclusion in phabstractic - July 21st, 2016