Skip to content

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)]

[Source]

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


Constructors

create

[Source]

new ref create(
  from: T,
  to: T = call)
: CountdownIter[T] ref^

Parameters

  • from: T
  • to: T = call

Returns


Public Functions

has_next

[Source]

fun ref has_next()
: Bool val

Returns


next

[Source]

fun ref next()
: T

Returns

  • T