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

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
主站蜘蛛池模板: 新津县| 龙游县| 广河县| 彰化市| 搜索| 南阳市| 连州市| 金寨县| 沿河| 新平| 金溪县| 和顺县| 凭祥市| 栖霞市| 新营市| 周口市| 乐业县| 阜平县| 北流市| 同仁县| 滨州市| 惠州市| 余江县| 平南县| 榆林市| 永年县| 合肥市| 那坡县| 济南市| 永顺县| 砚山县| 潞西市| 邯郸县| 和政县| 连江县| 云和县| 南澳县| 汶上县| 彰武县| 云霄县| 达拉特旗|