Enum.find_value/3
defmodule Enum do
def find_value(enumerable, default \\ nil, fun)
end
Returns the value of the first invocation of the function fun
which returns a truthy value.
If no such element is found it returns default
.
defmodule Enum do
def find_value(enumerable, default \\ nil, fun)
end
Returns the value of the first invocation of the function fun
which returns a truthy value.
If no such element is found it returns default
.