Handbook
Glossary
<interval-not> ( set maximum -- set' )
Interval sets
Prev:
interval-in? ( key set -- ? )
Next:
<interval-and> ( set1 set2 -- set )
Vocabulary
interval-sets
Inputs
set
an
interval-set
maximum
an
integer
Outputs
set'
an
interval-set
Word description
Calculates the complement of an interval set. Because interval sets are finite, this takes an argument for the maximum integer in the domain considered. This takes time proportional to the size of the input.
Definition
USING:
accessors
interval-sets.private
kernel
sequences
;
IN:
interval-sets
:
<interval-not>
( set maximum -- set' )
[
array>>
prefix-0
]
dip
suffix
make-intervals
;