DataList
Represents a list of data items. Supports three operations:
add: Adds data to the end of the list
remove: Removes the given item from the list, returns current last element and indication if the removed element was last.
last: Returns last element in the list, or initialData if the list is empty.
This structure is NOT thread-safe. Synchronization should be performed externally.
Parameters
DataT
The type of data in the sequence.
Constructors
Functions
Link copied to clipboard
Returns the last data item in the list. If the list is empty, it returns the initialData.