copy-interval |
| interval
| [Function] |
Purpose
Create a new interval by copying interval.
Package :gbbopen
Module :gbbopen-core
Arguments and values
interval | An interval | |
new-interval | An interval |
Returns
The new interval.
Description
The structure of the original interval (cons,
two-element list, or two-element array) is maintained in the newly allocated
new-interval.
See also
expand-interval
infinite-interval
interval-start
interval-end
make-interval
nexpand-interval
nshift-interval
shift-interval
Examples
> (copy-interval '(2 5)) (2 5) > (copy-interval '(2 . 5)) (2 . 5) > (expand-interval #(2 5)) #(2 5) >
The GBBopen Project
copy-interval |