← Standard library

SteppedRange

struct SteppedRange<T> where T is integral
import SteppedRange from Wax;

An integral range carrying an explicit positive stride and exclusive end. Construct through Range.Step to validate the stride.

Range.wax:38

Members

startfield

public T start

The inclusive first value.

Range.wax:42

endfield

public T end

The exclusive upper bound.

Range.wax:46

stepfield

public T step

The positive increment between successive values.

Range.wax:50

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.

constructorconstructor

public constructor ()

Provided by the compiler.