The Kotlin Standard Library provides living essentials for everyday work with Kotlin. These include:
- Higher-order functions implementing idiomatic patterns ([let][kotlin.let], [apply][kotlin.apply], [use][kotlin.io.use], [synchronized][kotlin.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 (document, window etc.) in the browser environment.
Collection types, such as [Iterable][kotlin.collections.Iterable], [Collection][kotlin.collections.Collection], [List][kotlin.collections.List], [Set][kotlin.collections.Set], [Map][kotlin.collections.Map] and related top-level and extension functions.
Helper functions for creating [Comparator][java.util.Comparator] instances.
Utility functions for concurrent programming.
Library support for coroutines, including support for lazy sequences.
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 other APIs specific to the JavaScript platform.
Functions and annotations specific to the Java platform.
Standard implementations of delegates for delegated properties and helper functions for implementing custom delegates.
Ranges, Progressions and related top-level and extension functions.
Runtime API for Kotlin reflection
Extensions for Kotlin reflection provided by kotlin-reflect library.
Runtime API for interoperability between Kotlin reflection and
Java reflection provided by kotlin-reflect library.
[Sequence][kotlin.sequences.Sequence] type that represents lazily evaluated collections. Top-level functions for instantiating sequences and extension functions for sequences.
Utility functions for working with Java 8 streams.
System-related utility functions.
Functions for writing test assertions.
Functions for working with text and regular expressions.
Kotlin JavaScript wrappers for the WebGL API.
Kotlin JavaScript wrappers for the DOM API.
Kotlin JavaScript wrappers for the DOM CSS API.
Kotlin JavaScript wrappers for the DOM events API.
Kotlin JavaScript wrappers for the DOM parsing API.
Kotlin JavaScript wrappers for the DOM SVG API.
Kotlin JavaScript wrappers for the DOM URL API.
Kotlin JavaScript wrappers for the W3C fetch API.
Kotlin JavaScript wrappers for the W3C file API.
Kotlin JavaScript wrappers for the Web Notifications API.
Kotlin JavaScript wrappers for the Navigation Timing API.
Kotlin JavaScript wrappers for the Web Workers API.
Kotlin JavaScript wrappers for the XMLHttpRequest API.