interval-intersect ( i1 i2 -- i3 )
Factor handbook » The language » Numbers » Intervals » Set-theoretic operations on intervals

Prev:interval-subset? ( i1 i2 -- ? )
Next:interval-union ( i1 i2 -- i3 )


Vocabulary
math.intervals

Inputs
i1an interval
i2an interval


Outputs
i3an interval or f


Word description
Outputs the set-theoretic intersection of i1 and i2. If i1 and i2 do not intersect, outputs f.

See also
interval-union

Definition