Range [Src] [optional A: (Real[A] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val | F32 val | F64 val))]
Produces [min, max).
class ref Range[optional A: (Real[A] val & (I8 val | I16 val | I32 val |
I64 val | I128 val | ILong val |
ISize val | U8 val | U16 val |
U32 val | U64 val | U128 val |
ULong val | USize val | F32 val |
F64 val))] is
Iterator[A] ref
Implements
- Iterator[A] ref
Constructors
create [Src]
new ref create(
min: A,
max: A,
inc: A = seq)
: Range[A] ref^
Parameters
- min: A
- max: A
- inc: A = seq
Returns
- Range[A] ref^
Public Functions
has_next [Src]
fun box has_next()
: Bool val
Returns
- Bool val
next [Src]
fun ref next()
: A
Returns
- A
rewind [Src]
fun ref rewind()
: None val
Returns
- None val