CharProgression
open class CharProgression(val first: Char, endInclusive: Char, val step: Int) : Iterable<Char> (source)
An ordered progression of Char values with a nonzero, signed step.
Positive steps move upwards; negative steps move downwards. The inclusive last is adjusted to align with first and step, so it may differ from endInclusive. A progression is empty when its bounds run against the step direction. Characters are traversed by UTF-16 code unit, not by Unicode code point.
Parameters
first
the starting value.
endInclusive
the requested inclusive bound in the direction of traversal.
step
the signed difference between successive elements.
Throws
if step is zero or Int.MIN_VALUE.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T, R : Any, C : MutableCollection<in R>> Iterable<T>.mapNotNullTo(destination: C, transform: (T) -> R?): C
Appends non-null transformed elements to destination in iteration order.
Link copied to clipboard
Creates a progression with the same direction and a new positive step magnitude.