range
Factor documentation > Factor handbook > The language > Collections > Sequence operations > Numeric ranges
Next:[a,b] ( a b -- range )


Vocabulary
math.ranges

Definition
IN: math.ranges

TUPLE: range
{ from read-only } { length read-only } { step read-only }
;


Methods
USING: classes.tuple kernel math.ranges ;

M: range hashcode* tuple-hashcode ;


USING: accessors math.ranges sequences ;

M: range length length>> ; inline


USING: accessors kernel math math.ranges sequences.private ;

M: range nth-unsafe [ step>> * ] keep from>> + ; inline