Handbook
Glossary
<interval-or> ( set1 set2 -- set )
Interval sets
Prev:
<interval-and> ( set1 set2 -- set )
Vocabulary
interval-sets
Inputs
set1
an
interval-set
set2
an
interval-set
Outputs
set
an
interval-set
Word description
Calculates the union of two interval sets. This takes O(n+m) time, where the input interval maps have n and m intervals in them.
Definition
USING:
accessors
interval-sets.private
kernel
make
specialized-arrays.instances.alien.c-types.uint
;
IN:
interval-sets
:
<interval-or>
( set1 set2 -- set )
[
array>>
]
bi@
[
combine-or
]
uint-array{
}
make
make-intervals
;