Handbook
Glossary
interval-subset? ( i1 i2 -- ? )
Factor handbook
»
The language
»
Numbers
»
Intervals
»
Set-theoretic operations on intervals
Prev:
interval-contains? ( x interval -- ? )
Next:
interval-intersect ( i1 i2 -- i3 )
Vocabulary
math
.
intervals
Inputs
i1
an
interval
i2
an
interval
Outputs
?
a
boolean
Word description
Tests if every point of
i1
is contained in
i2
.
Examples
USING: math.intervals prettyprint ; 2 4 [a,b] 1 9 [a,b] interval-subset? .
t
See also
interval-contains?
Definition
USING:
kernel
;
IN:
math.intervals
:
interval-subset?
( i1 i2 -- ? )
dupd
interval-intersect
=
;