Package-level declarations

Types

Link copied to clipboard
interface Annotation
Link copied to clipboard
open class Any
Link copied to clipboard
class ArithmeticException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
class Array<T>

A fixed-size, mutable array of T elements.

Link copied to clipboard

A truth value, either true or false.

Link copied to clipboard

A fixed-size, mutable array of Boolean values.

Link copied to clipboard

A signed 8-bit integer with values from -128 through 127.

Link copied to clipboard
class ByteArray

A fixed-size, mutable array of Byte values.

Link copied to clipboard
class Char : Comparable<Char>

A single unsigned 16-bit UTF-16 code unit.

Link copied to clipboard
class CharArray

A fixed-size, mutable array of Char values.

Link copied to clipboard
interface CharSequence
Link copied to clipboard
class ClassCastException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
interface Comparable<in T>
Link copied to clipboard
annotation class Deprecated(val message: String)
Link copied to clipboard

An IEEE 754 binary64 floating-point value.

Link copied to clipboard

A fixed-size, mutable array of Double values.

Link copied to clipboard
abstract class Enum<E : Enum<E>> : Comparable<E>
Link copied to clipboard
open class Exception(message: String?, cause: Throwable? = null) : Throwable
Link copied to clipboard
annotation class ExtensionFunctionType
Link copied to clipboard

An IEEE 754 binary32 floating-point value.

Link copied to clipboard

A fixed-size, mutable array of Float values.

Link copied to clipboard
interface Function<out R>
Link copied to clipboard
interface Function0<out R> : Function<R>
Link copied to clipboard
interface Function1<in P1, out R> : Function<R>
Link copied to clipboard
interface Function2<in P1, in P2, out R> : Function<R>
Link copied to clipboard
open class IllegalArgumentException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
open class IllegalStateException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
open class IndexOutOfBoundsException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard

A signed 32-bit integer with values from -2,147,483,648 through 2,147,483,647.

Link copied to clipboard
class IntArray

A fixed-size, mutable array of Int values.

Link copied to clipboard

A signed 64-bit integer with values from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.

Link copied to clipboard
class LongArray

A fixed-size, mutable array of Long values.

Link copied to clipboard
class NegativeArraySizeException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
class NoSuchElementException(message: String?, cause: Throwable? = null) : RuntimeException

No element satisfies a required collection or peripheral selection.

Link copied to clipboard
class Nothing
Link copied to clipboard
class NullPointerException(message: String?, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
abstract class Number

Common supertype of the signed numeric primitives.

Link copied to clipboard

The input cannot be represented as the requested number.

Link copied to clipboard
annotation class OptIn(val markerClass: KClass<out Annotation>)

Accepts the named experimental markers within this declaration or file.

Link copied to clipboard
class Pair<A, B>(val first: A, val second: B) : PairComponents

Stores two typed values with component-wise equality and positional destructuring.

Link copied to clipboard
sealed interface PairComponents

Read-only component view shared by concrete Pair specializations.

Link copied to clipboard
annotation class ParameterName(val name: String)
Link copied to clipboard
annotation class PublishedApi
Link copied to clipboard
annotation class RequiresOptIn(val message: String = "", val level: RequiresOptIn.Level = Level.ERROR)

Marks declarations whose callers must acknowledge an experimental API.

Link copied to clipboard
open class RuntimeException(message: String?, cause: Throwable? = null) : Exception
Link copied to clipboard

A signed 16-bit integer with values from -32,768 through 32,767.

Link copied to clipboard

A fixed-size, mutable array of Short values.

Link copied to clipboard
Link copied to clipboard
annotation class Suppress(val names: String)
Link copied to clipboard
open class Throwable(message: String?)
Link copied to clipboard

An unsigned 8-bit integer with values from zero through 255.

Link copied to clipboard

A fixed-size, mutable array of UByte values.

Link copied to clipboard
class UInt : Comparable<UInt>

An unsigned 32-bit integer with values from zero through 4,294,967,295.

Link copied to clipboard
class UIntArray

A fixed-size, mutable array of UInt values.

Link copied to clipboard

An unsigned 64-bit integer with values from zero through 18,446,744,073,709,551,615.

Link copied to clipboard

A fixed-size, mutable array of ULong values.

Link copied to clipboard
object Unit
Link copied to clipboard
annotation class UnsafeVariance
Link copied to clipboard

An unsigned 16-bit integer with values from zero through 65,535.

Link copied to clipboard

A fixed-size, mutable array of UShort values.

Functions

Link copied to clipboard
inline fun <T> T.also(block: (T) -> Unit): T

Calls block with this value and returns this value.

Link copied to clipboard
inline fun <T> T.apply(block: T.() -> Unit): T

Calls block with this value as its receiver and returns this value.

Link copied to clipboard
external fun <T> arrayOf(vararg elements: T): Array<T>

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun <T> arrayOfNulls(size: Int): Array<T?>

Creates an array of the requested size with every element set to null.

Link copied to clipboard
external fun booleanArrayOf(vararg elements: Boolean): BooleanArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun byteArrayOf(vararg elements: Byte): ByteArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun charArrayOf(vararg elements: Char): CharArray

Creates a new array containing elements in argument order.

Link copied to clipboard
fun check(value: Boolean)

Validates a state precondition.

inline fun check(value: Boolean, lazyMessage: () -> Any)

Validates a state precondition, computing a message only on failure.

Link copied to clipboard
external fun doubleArrayOf(vararg elements: Double): DoubleArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun <T> emptyArray(): Array<T>

Creates an empty array with the requested element type.

Link copied to clipboard
fun error(message: String): Nothing

Stops normal execution by throwing an IllegalStateException.

Link copied to clipboard
external fun floatArrayOf(vararg elements: Float): FloatArray

Creates a new array containing elements in argument order.

Link copied to clipboard
fun Any?.hashCode(): Int
Link copied to clipboard
external fun intArrayOf(vararg elements: Int): IntArray

Creates a new array containing elements in argument order.

Link copied to clipboard
inline fun <T, R> T.let(block: (T) -> R): R

Calls block with this value and returns its result.

Link copied to clipboard
external fun longArrayOf(vararg elements: Long): LongArray

Creates a new array containing elements in argument order.

Link copied to clipboard
inline fun repeat(times: Int, action: (Int) -> Unit)

Calls action with each index from zero until times, or not at all for non-positive counts.

Link copied to clipboard
fun require(value: Boolean)

Validates an argument precondition.

inline fun require(value: Boolean, lazyMessage: () -> Any)

Validates an argument precondition, computing a message only on failure.

Link copied to clipboard
inline fun <R> run(block: () -> R): R

Calls block without a receiver and returns its result.

Link copied to clipboard
inline fun <T, R> T.run(block: T.() -> R): R

Calls block with this value as its receiver and returns its result.

Link copied to clipboard
external fun shortArrayOf(vararg elements: Short): ShortArray

Creates a new array containing elements in argument order.

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

Returns this value when predicate is true, or null otherwise.

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

Returns this value when predicate is false, or null otherwise.

Link copied to clipboard
infix fun <A, B> A.to(that: B): Pair<A, B>

Creates a pair from this value and that, retaining their concrete types.

Link copied to clipboard
external fun <T> T?.toString(): String
Link copied to clipboard
external fun ubyteArrayOf(vararg elements: UByte): UByteArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun uintArrayOf(vararg elements: UInt): UIntArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun ulongArrayOf(vararg elements: ULong): ULongArray

Creates a new array containing elements in argument order.

Link copied to clipboard
external fun ushortArrayOf(vararg elements: UShort): UShortArray

Creates a new array containing elements in argument order.

Link copied to clipboard
inline fun <T, R> with(receiver: T, block: T.() -> R): R

Calls block with receiver as its receiver and returns its result.