Kotlin Standard Library
The Kotlin Standard Library provides living essentials for everyday work with Kotlin. These include:
- Higher-order functions implementing idiomatic patterns (let, apply, use, synchronized, etc).
- Extension functions providing querying operations for collections (eager) and sequences (lazy).
- Various utilities for working with strings and char sequences.
- Extensions for JDK classes making it convenient to work with files, IO, and threading.
Core functions and types, available on all supported platforms.
Library support for the Kotlin annotation facility.
Access to top-level properties (
window etc.) in the browser environment.
Utility functions for concurrent programming.
Experimental DSL for declaring custom function contracts.
Low-level building blocks for libraries that provide coroutine-based APIs.
Utility functions for working with the browser DOM.
Experimental APIs, subject to change in future versions of Kotlin.
IO API for working with files and streams.
Functions and annotations specific to the Java platform.
Convenience extension functions for
java.util.Optional to simplify Kotlin-Java interop.
Mathematical functions and constants.
Standard implementations of delegates for delegated properties and helper functions for implementing custom delegates.
Provides the default generator of pseudo-random values, the repeatable generator, and a base class for other RNG implementations.
Runtime API for interoperability between Kotlin reflection and
Java reflection provided by
Sequence type that represents lazily evaluated collections. Top-level functions for instantiating sequences and extension functions for sequences.
System-related utility functions.
Functions for working with text and regular expressions.
API for measuring time intervals and calculating durations.