chickadee » integer-map » fxmapping-open-interval

fxmapping-open-interval fxmap low highprocedure
fxmapping-closed-interval fxmap low highprocedure
fxmapping-open-closed-interval fxmap low highprocedure
fxmapping-closed-open-interval fxmap low highprocedure

low and high are both exact integers.

Procedures that return a subset of fxmap containing the associations whose keys are contained in the interval from low to high. The interval may be open, closed, open below and closed above, or open above and closed below.

Examples:

(fxmapping->alist
 (fxmapping-open-interval (fxmapping 0 'a 1 'b 2 'c 3 'd) 1 3))
 ⇒ ((2 . c))

(fxmapping->alist
 (fxmapping-closed-interval (fxmapping 0 'a 1 'b 2 'c 3 'd) 1 3))
 ⇒ ((1 . b) (2 . c) (3 . d))

(fxmapping->alist
 (fxmapping-closed-open-interval (fxmapping 0 'a 1 'b 2 'c 3 'd) 1 3))
 ⇒ ((1 . b) (2 . c))