Pick
Last updated
Was this helpful?
Last updated
Was this helpful?
Applies the given chooser
function to successive elements, returning the first result where function returns an option value that IsSome
.
It works similar to function, but in this case only the first value is returned.
Parameters
Returns
Func<T, Option<T2>> chooser
IEnumerable<T> source
T2
Type
When
InvalidOperationException
The chooser function returns options with IsNone for all elements.
Getting the double of first odd number in a collection