between
lib.types.numbers.between
Docs pulled from | This Revision | 29 minutes ago
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
Implementation
The following is the current implementation of this function.
lowest: highest:
assert lib.assertMsg (lowest <= highest) "numbers.between: lowest must be smaller than highest";
addCheck number (x: x >= lowest && x <= highest)
// {
name = "numberBetween";
description = "integer or floating point number between ${betweenDesc lowest highest}";
}