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

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


Constructors

create

new ref create(
  min: A,
  max: A,
  inc: A = seq)
: Range[A] ref^

Parameters

  • min: A
  • max: A
  • inc: A = seq

Returns


Public Functions

has_next

fun box has_next()
: Bool val

Returns


next

fun ref next()
: A

Returns

  • A

rewind

fun ref rewind()
: None val

Returns