PassiveSupport.Enum.none-question-mark
You're seeing just the function
none-question-mark
, go back to PassiveSupport.Enum module for more information.
Link to this function
none?(enum, fun \\ & &1)
Specs
none?(Enumerable.t(), function()) :: boolean()
Returns true if the given fun
evaluates to false on all
of the items in the enumberable.
Iteration stops at the first invocation that returns a
truthy value (not false
or nil
). Invokes an identity
function if one is not provided.
Examples
iex> test_list = [1, 2, 3]
...> none?(test_list, &(&1 == 0))
true
...> none?([0 | test_list], &(&1 == 0))
false
iex> none?([])
true
iex> none?([nil])
true
iex> none?([true])
false