query
On this page

lessThan

builtins.lessThan

Primop
Docs pulled from | This Revision | about 9 hours ago

Takes 2 arguments

e1, e2


Return true if the value e1 is less than the value e2, and false otherwise. Evaluation aborts if either e1 or e2 does not evaluate to a number, string or path. Furthermore, it aborts if e2 does not match e1's type according to the aforementioned classification of number, string or path.

This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle detected

Aliases

Detected Type
lessThan :: Number -> Number -> Bool

Implementation

This function is implemented in c++ and is part of the native nix runtime.