Kernel.is_nil
You're seeing just the macro
is_nil
, go back to Kernel module for more information.
Returns true
if term
is nil
, false
otherwise.
Allowed in guard clauses.
Examples
iex> is_nil(1)
false
iex> is_nil(nil)
true