class UIntRange
source · line 279public
public class UIntRange internal constructor(
private val first: UInt,
private val endpoint: UInt,
private val stride: UInt,
private val descending: Boolean,
private val inclusive: Boolean
) : Iterable<UInt>, Contains<UInt>
- Supertype
Iterable<UInt> - Supertype
Contains<UInt>
An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.
function step
source · line 296public
public infix fun step(value: UInt): UIntRange
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 296public
value: UInt
function contains
source · line 306public
public override operator fun contains(value: UInt): Boolean
- Overrides
contains· Contains
Tests membership using both endpoint bounds and alignment with the progression step.
parameter value
source · line 306public
value: UInt
function iterator
source · line 289public
public override operator fun iterator(): Iterator<UInt>
- Overrides
iterator· Iterable
Creates a fresh cursor over this progression.