class ULongRange
source · line 415public
public class ULongRange internal constructor(
private val first: ULong,
private val endpoint: ULong,
private val stride: ULong,
private val descending: Boolean,
private val inclusive: Boolean
) : Iterable<ULong>, Contains<ULong>
- Supertype
Iterable<ULong> - Supertype
Contains<ULong>
An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.
function iterator
source · line 425public
public override operator fun iterator(): Iterator<ULong>
- Overrides
iterator· Iterable
Creates a fresh cursor over this progression.
function step
source · line 432public
public infix fun step(value: ULong): ULongRange
Returns a progression with the requested positive step magnitude, preserving direction and endpoint policy. Zero or negative signed steps are invalid.
parameter value
source · line 432public
value: ULong
function contains
source · line 442public
public override operator fun contains(value: ULong): Boolean
- Overrides
contains· Contains
Tests membership using both endpoint bounds and alignment with the progression step.
parameter value
source · line 442public
value: ULong