Handbook
Glossary
interval-at ( key map -- value )
Factor handbook
»
The language
»
Collections
»
Interval maps
Prev:
interval-at* ( key map -- value ? )
Next:
interval-key? ( key map -- ? )
Vocabulary
interval-maps
Inputs
key
an
object
map
an
interval-map
Outputs
value
the value for the key, or f
Word description
Looks up a key in an interval map, returning the value of the corresponding interval, or f if the interval is not present in the map.
Definition
USING:
kernel
;
IN:
interval-maps
:
interval-at
( key map -- value )
interval-at*
drop
;
inline