TryPick
Last updated
Was this helpful?
Last updated
Was this helpful?
Applies the given chooser
function to successive elements, returning the first result of an option value that IsSome
.
Returns an that IsNone
if no such element exists.
Similar to , but in this case the value still in an option context and this function doesn't raises any exception.
Parameters
Returns
Func<T, Option<T2>> chooser
IEnumerable<T> source
T2
Getting the double of first odd number in a collection
When there is no element that satisfies the condition