<range> ( a b step -- range )
Factor documentation > Factor handbook > The language > Collections > Sequence operations > Numeric ranges
Prev:[0,b) ( b -- range )


Vocabulary
math.ranges

Definition
USING: kernel math math.order math.ranges.private ;

IN: math.ranges

: <range> ( a b step -- range )
[ over - ] dip [ sign/mod 0 < [ 1 + ] unless 0 max ] keep
range boa ; inline