Package-level declarations

Types

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>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ByteArray
Link copied to clipboard
class Char : Comparable<Char>
Link copied to clipboard
class CharArray
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
Link copied to clipboard
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
Link copied to clipboard
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
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
Link copied to clipboard
class IntArray
Link copied to clipboard
Link copied to clipboard
class LongArray
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
Link copied to clipboard
annotation class ParameterName(val name: String)
Link copied to clipboard
annotation class PublishedApi
Link copied to clipboard
open class RuntimeException(message: String?, cause: Throwable? = null) : Exception
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
class UInt : Comparable<UInt>
Link copied to clipboard
class UIntArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Unit
Link copied to clipboard
annotation class UnsafeVariance
Link copied to clipboard
Link copied to clipboard

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>
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
Link copied to clipboard
external fun byteArrayOf(vararg elements: Byte): ByteArray
Link copied to clipboard
external fun charArrayOf(vararg elements: Char): CharArray
Link copied to clipboard
fun check(value: Boolean)
inline fun check(value: Boolean, lazyMessage: () -> Any)
Link copied to clipboard
external fun doubleArrayOf(vararg elements: Double): DoubleArray
Link copied to clipboard
external fun <T> emptyArray(): Array<T>
Link copied to clipboard
fun error(message: String): Nothing
Link copied to clipboard
external fun floatArrayOf(vararg elements: Float): FloatArray
Link copied to clipboard
fun Any?.hashCode(): Int
Link copied to clipboard
external fun intArrayOf(vararg elements: Int): IntArray
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
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)
inline fun require(value: Boolean, lazyMessage: () -> Any)
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
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
external fun <T> T?.toString(): String
Link copied to clipboard
external fun ubyteArrayOf(vararg elements: UByte): UByteArray
Link copied to clipboard
external fun uintArrayOf(vararg elements: UInt): UIntArray
Link copied to clipboard
external fun ulongArrayOf(vararg elements: ULong): ULongArray
Link copied to clipboard
external fun ushortArrayOf(vararg elements: UShort): UShortArray
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.