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.
Helper functions for creating Comparator instances.
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.
Convenient extensions for working with file system using java.nio.file.Path.
Functions and annotations specific to the Java platform.
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.
Ranges, Progressions and related top-level and extension functions.
Runtime API for Kotlin reflection
Extensions for Kotlin reflection provided by
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.
Utility functions for working with Java 8 streams.
System-related utility functions.
Functions for working with text and regular expressions.
API for representing Duration values and experimental API for measuring time intervals.
© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.