官术网_书友最值得收藏!

The Kotlin standard library

The Kotlin standard library (stdlib) is a very small library that is distributed together with Kotlin. It is required to run applications written in Kotlin and it is added automatically to our application during the build process.

In Kotlin 1.1, kotlin-runtime was required to run applications written in Kotlin. In fact, in Kotlin 1.1 there were two artifacts ( kotlin-runtime and kotlin-stdlib) that shared a lot of Kotlin packages. To reduce the amount of confusion, both the artifacts will be merged into a single artifact ( kotlin-stdlib) in the upcoming 1.2 version of Kotlin. Starting from Kotlin 1.2, kotlin-stdlib is required to run applications written in Kotlin.

The Kotlin standard library provides essential elements required for everyday work with Kotlin. These include:

  • Data types such as arrays, collections, lists, ranges, and so on
  • Extensions
  • Higher-order functions
  • Various utilities for working with strings and char sequences
  • Extensions for JDK classes, making it convenient to work with files, IO, and threading
主站蜘蛛池模板: 芮城县| 奉节县| 自贡市| 京山县| 延津县| 昭平县| 南岸区| 砀山县| 无极县| 特克斯县| 贡山| 奇台县| 汶川县| 连江县| 辽阳市| 北辰区| 德保县| 墨玉县| 西昌市| 邵阳县| 龙胜| 韶山市| 保德县| 津市市| 会宁县| 临武县| 泾源县| 黑龙江省| 延安市| 高陵县| 凤台县| 徐闻县| 潞城市| 鄂州市| 拜泉县| 黑龙江省| 南昌县| 浮梁县| 贵定县| 长白| 武陟县|