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

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
主站蜘蛛池模板: 普宁市| 搜索| 平山县| 清苑县| 丹东市| 罗甸县| 柏乡县| 玉山县| 桃江县| 舟曲县| 泰顺县| 子洲县| 汝阳县| 八宿县| 密云县| 嘉兴市| 鄂托克前旗| 石阡县| 辰溪县| 阿勒泰市| 桐城市| 涟水县| 淮阳县| 新建县| 浦东新区| 定结县| 宜宾县| 洞口县| 诏安县| 隆化县| 龙里县| 灵川县| 武冈市| 荥阳市| 东莞市| 北票市| 大理市| 遂平县| 石景山区| 新化县| 博野县|