Bottle.Map.is_non_empty_map
You're seeing just the macro
is_non_empty_map
, go back to Bottle.Map module for more information.
Guard that passes for an map containing at least 1 element
Examples
iex> is_non_empty_map(%{"foo" => :bar}) true
iex> is_non_empty_map(%{foo: "bar"}) true
iex> is_non_empty_map(%{}) false
iex> is_non_empty_map({"anything", "else"}) false