Skip to content

CountdownIter[optional T: (Int & Integer[T] val)]

[Source]

class ref CountdownIter[optional T: (Int & 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