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]

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]

Create am Iterator that counts down according to the specified arguments.

from is exclusive, to is inclusive.

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