isFunction
lib.trivial.isFunction
Docs pulled from | This Revision | 18 minutes ago
Nixpkgs manual
Check whether something is a function or something annotated with function args.
Inputs
f-
1. Function argument
Type
isFunction : Any -> Bool
Nix manual
Return true if e evaluates to a function, and false otherwise.
Noogle detected
Implementation
The following is the current implementation of this function.
isFunction = f: builtins.isFunction f || (f ? __functor && isFunction (f.__functor f));