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