- all
size_t all(A range)
Checks if all elements in range fulfill a given predicate F.
- among
size_t among(A range)
Searches for the last index of the given argument in range.
- any
size_t any(A range)
Checks if any elements in range fulfill a given predicate F.
- canFind
bool canFind(A range, B elem)
bool canFind(A range, B subrange)
bool canFind(A range)
Checks if range contains subrange.
- contains
bool contains(A range, B elem)
Checks if range contains elem.
- contains
bool contains(A range, B subrange)
bool contains(A range)
Checks if range contains subrange.
- count
size_t count(A range, B elem)
size_t count(A range, B subrange)
Counts all occurrences of elem in range.
- countUntil
size_t countUntil(A range, B elem)
size_t countUntil(A range, B subrange)
size_t countUntil(A range)
Searches for the index of the given argument in range.
- endsWith
bool endsWith(A range, B elem)
bool endsWith(A range, B subrange)
Checks if range ends with a given element.
- indexOf
size_t indexOf(A range, B elem)
size_t indexOf(A range, B subrange)
size_t indexOf(A range)
Searches for the index of the given argument in range.
- lastIndexOf
size_t lastIndexOf(A range, B elem)
size_t lastIndexOf(A range, B subrange)
size_t lastIndexOf(A range)
Searches for the last index of the given argument in range.
- portionBy
T[] portionBy(T range, size_t blockSize, bool pad)
Portions range into blocks of blockSize, with optional padding.
- portionTo
P[] portionTo(T range)
Portions range into blocks of blockSize.
- startsWith
bool startsWith(A range, B elem)
bool startsWith(A range, B subrange)
Checks if range starts with a given element.
Algorithms for searching in a range.