CountdownIter[optional T: ((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) & Integer[T] val)]¶
workaround until 0.21.0 is released and Range supports negative steps
from
is exclusive, to
is inclusive
class ref CountdownIter[optional T: ((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) & Integer[T] val)] is
Iterator[T] ref
Implements¶
- Iterator[T] ref
Constructors¶
create¶
new ref create(
from: T,
to: T = call)
: CountdownIter[T] ref^
Parameters¶
- from: T
- to: T = call
Returns¶
- CountdownIter[T] ref^
Public Functions¶
has_next¶
fun ref has_next()
: Bool val
Returns¶
- Bool val
next¶
fun ref next()
: T
Returns¶
- T