CatMaybes |
Given an Iterable <Maybe <A>>
, return an
Iterable <A>
of only the present values.
|
Coalesce |
Fold an Iterable <Either <L, R>>
into an Either <Iterable <L>, Iterable <R>>
, preserving all results of the side that's returned.
|
Constantly |
A function that takes two arguments and always returns the first argument.
|
Cycle |
Given an Iterable , return an infinite Iterable that repeatedly cycles its elements, in
order.
|
Distinct |
Return an Iterable of the distinct values from the given input Iterable .
|
Downcast |
Covariantly cast a value of type B to a value of subtype A .
|
Empty |
A predicate that returns true if as is empty; false otherwise.
|
Flatten |
Given a nested Iterable of Iterable s, return a lazily flattening Iterable
of the nested elements.
|
Force |
Deprecated.
|
Head |
Retrieve the head element of an Iterable , wrapped in an Maybe .
|
Id |
The identity function.
|
Init |
Given an Iterable <A> , produce an
Iterable <A> of all elements but the last one.
|
Inits |
Given an Iterable <A> , produce an
Iterable <Iterable <A>> , representing all of the subsequences of initial
elements, ordered by size, starting with the empty Iterable .
|
Last |
Retrieve the last element of an Iterable , wrapped in a Maybe .
|
Magnetize |
Magnetize an Iterable using value equality as the magnetizing function.
|
Not |
Negate a predicate function.
|
Occurrences |
Given an Iterable <A> , return a Map <A, Long> representing each
unique element in the Iterable paired with its number of occurrences.
|
Repeat |
Given a value, return an infinite Iterable that repeatedly iterates that value.
|
Reverse |
Given an Iterable , return a reversed representation of that Iterable .
|
Size |
|
Sort |
Given an Iterable of Comparable elements, return a List of the sorted elements.
|
Tail |
Returns the tail of an Iterable ; the is, an Iterable of all the elements except for the
head element.
|
Tails |
Given an Iterable <A> , produce an
Iterable <Iterable <A>> , representing all of the subsequences of tail
elements, ordered by size, starting with the full Iterable .
|
Uncons |
Destructure an Iterable into a Tuple2 of its head and tail, wrapped in an Maybe .
|
Upcast |
Upcast a value of type B to a value of type A that B extends.
|