Enhanced C#
Language of your choice: library documentation
|
Extension/helper methods for ranges. More...
Extension/helper methods for ranges.
Static Public Member Functions | |
static int | Skip< R, T > (ref R range, int count) |
Advances by the specified number of elements. More... | |
static int | DropLast< R, T > (ref R range, int count) |
static T | PopFirst< R, T > (ref R range) |
static Maybe< T > | TryPopFirst< R, T > (ref R range) |
static bool | TryPopFirst< R, T > (ref R range, out T item) |
static T | PopLast< R, T > (ref R range) |
static Maybe< T > | TryPopLast< R, T > (ref R range) |
static bool | TryPopLast< R, T > (ref R range, out T item) |
static bool | Contains< R, T > (this R range, IRangeEx< R, T > other) |
static bool | Overlaps< R, T > (this R range, IRangeEx< R, T > other) |
|
inlinestatic |
Advances by the specified number of elements.
count | Number of items to remove from the beginning of the range. If count is higher than the number of items in the range, no exception is thrown but the return value will be less than this value. |
R | : | IFRange<T> |
References Loyc.Collections.IFRange< out out T >.PopFirst().