CharRange

class CharRange(start: Char, endInclusive: Char) : CharProgression, ClosedRange<Char> (source)

A range of values of type Char.

Since Kotlin

1.0

Constructors

Link copied to clipboard
constructor(start: Char, endInclusive: Char)

Types

Link copied to clipboard
object Companion
Since Kotlin 1.0

Properties

Link copied to clipboard
open override val endInclusive: Char

The maximum value in the range (inclusive).

Since Kotlin 1.0
Link copied to clipboard
val first: Char

The first element in the progression.

Since Kotlin 1.0
Link copied to clipboard
val last: Char

The last element in the progression.

Since Kotlin 1.0
Link copied to clipboard
open override val start: Char

The minimum value in the range.

Since Kotlin 1.0
Link copied to clipboard
val step: Int

The step of the progression.

Since Kotlin 1.0

Functions

Link copied to clipboard
inline fun <T> Iterable<T>.all(predicate: (T) -> Boolean): Boolean

Returns true if all elements match the given predicate.

Since Kotlin 1.0
Link copied to clipboard
fun <T> Iterable<T>.any(): Boolean

Returns true if collection has at least one element.

Since Kotlin 1.0
inline fun <T> Iterable<T>.any(predicate: (T) -> Boolean): Boolean

Returns true if at least one element matches the given predicate.

Since Kotlin 1.0
Link copied to clipboard
inline fun <T> Iterable<T>.asIterable(): Iterable<T>

Returns this collection as an Iterable.

Since Kotlin 1.0
Link copied to clipboard

Creates a Sequence instance that wraps the original collection returning its elements when being iterated.

Since Kotlin 1.0
Link copied to clipboard
inline fun <T, K, V> Iterable<T>.associate(transform: (T) -> Pair<K, V>): Map<K, V>

Returns a Map containing key-value pairs provided by transform function applied to elements of the given collection.

Since Kotlin 1.0
Link copied to clipboard
inline fun <T, K> Iterable<T>.associateBy(keySelector: (T) -> K): Map<K, T>

Returns a Map containing the elements from the given collection indexed by the key returned from keySelector function applied to each element.

Since Kotlin 1.0
inline fun <T, K, V> Iterable<T>.associateBy(keySelector: (T) -> K, valueTransform: (T) -> V): Map<