[a,a] ( a -- interval )
Factor documentation > Factor handbook > The language > Numbers > Intervals > Creating intervals
Prev:(a,b] ( a b -- interval )
Next:[-inf,a] ( a -- interval )


Vocabulary
math.intervals

Inputs and outputs
aa real
intervalan interval


Word description
Creates a new interval consisting of a single point.

Definition
USING: kernel ;

IN: math.intervals

: [a,a] ( a -- interval ) closed-point dup <interval> ;
foldable flushable