Scoop API

scoop:scoop.std:0.1.0

copyOfRange

function copyOfRange

source · line 27
public
public fun <T> SortedSet<T>.copyOfRange(fromElement: T, toElement: T, fromInclusive: Boolean = true, toInclusive: Boolean = false): SortedSet<T>

Extension receiver: SortedSet<T>

Copies the comparator-bounded range into an independent read-only ordered collection. Bounds default to lower-inclusive and upper-exclusive; reversed bounds throw.

function copyOfRange

source · line 7
public
public fun <K, V> SortedMap<K, V>.copyOfRange(fromKey: K, toKey: K, fromInclusive: Boolean = true, toInclusive: Boolean = false): SortedMap<K, V>

Extension receiver: SortedMap<K, V>

Copies the comparator-bounded range into an independent read-only ordered collection. Bounds default to lower-inclusive and upper-exclusive; reversed bounds throw.