Scoop API

scoop:scoop.core:0.1.0

UIntRange

class UIntRange

source · line 279
public
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>

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 296
public
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.