|
Enhanced C#
Loyc library documentation
|
A bidirectional range. Allows you to read or remove the first or last element in a range. More...
A bidirectional range. Allows you to read or remove the first or last element in a range.
The bidirectional range interface is useful for supporting data structures such as doubly-linked lists that have a front and a back but no efficient access to the middle.
Please see IFRange{T} for general documentation about ranges.
Public Member Functions | |
| T | PopLast (out bool fail) |
| Removes the last item from the range and returns it. More... | |
Public Member Functions inherited from Loyc.Collections.IFRange< out T > | |
| T | PopFirst (out bool fail) |
| Removes the first item from the range and returns it. More... | |
Public Member Functions inherited from Loyc.ICloneable< out T > | |
| T | Clone () |
Additional Inherited Members | |
Properties inherited from Loyc.Collections.IHasFirst< out T > | |
| T | First [get] |
| Gets the first item in the deque. More... | |
Properties inherited from Loyc.Collections.IIsEmpty | |
| bool | IsEmpty [get] |
Properties inherited from Loyc.Collections.IHasLast< out T > | |
| T | Last [get] |
| Gets the first item in the collection. More... | |
| T Loyc.Collections.IBRange< out T >.PopLast | ( | out bool | fail | ) |
Removes the last item from the range and returns it.
| fail | Receives the current value of IsEmpty. |
The remarks of IFRange{T}.PopFirst apply to this method.
Implemented in Loyc.Collections.Repeated< T >, Loyc.Collections.ListSlice< T >, Loyc.Collections.Slice_< T >, Loyc.Collections.NegListSlice< T >, Loyc.Collections.ROLSlice< T, TList >, and Loyc.Collections.ArraySlice< T >.
1.8.7