
  -spec is_function(Term, Arity) -> boolean()
                       when Term :: term(), Arity :: arity().

  Returns true if Term is a fun that can be applied with Arity
  number of arguments, otherwise false.

  Allowed in guard tests.
