findLast
Callable
Type parameters
- T
The element type.
Parameters
xs: Traversable<T, unknown>
The Mappable search in.
by: (item: T) => boolean
The predicate to search with.
Returns Maybe<T>
The last element that satisfies the given predicate,
Nothing
otherwise.- T
Find the last element in a Traversable by a given predicate.
Example
Alternatives