Scoop API

scoop:scoop.core:0.1.0

ULongRange

class ULongRange

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

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