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
i1an interval
i2an 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