chickadee » hashes » make-range-restriction

make-range-restriction UPPER #!optional LOWERprocedure

Returns a procedure of 1 argument, (procedure (number) number). The arguments will be swapped if necessary so the range is [LOWER UPPER]. When LOWER missing 0 is assumed.