Scoop API

scoop:scoop.core:0.1.0

LongRange

class LongRange

source · line 142
public
public class LongRange internal constructor(
    private val first: Long,
    private val endpoint: Long,
    private val stride: Long,
    private val descending: Boolean,
    private val inclusive: Boolean
) : Iterable<Long>, Contains<Long>

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 159
public
public infix fun step(value: Long): LongRange

Returns a progression with the requested positive step magnitude, preserving direction and endpoint policy. Zero or negative signed steps are invalid.