It is concise, expressive, and powerful, with features such as null safety, extension functions, lambdas, and many others. This cheat sheet will cover some of the essential Kotlin concepts. First Kotlin program This is an example of printing "Hello world" in Kotlin: fun main() { println(...
appmattus/crypto - A collection of Kotlin Multiplatform Mobile cryptographic hashing functions. ionspin/kotlin-multiplatform-libsodium - Kotlin multiplatform wrapper for Libsodium cryptographic library. DSL Back ⇈ bipokot/Kabu - The fastest way to create complex Kotlin DSL h0tk3y/regex-dsl - A Kot...
Kotlin Collection 1_K1BGRTUJ8eZTw5E1Qnv2pw.png https://medium.com/mobile-app-development-publication/kotlin-collection-functions-cheat-sheet-975371a96c4b component1 //返回第1个...第5个值publicinlineoperatorfun<T>List<T>.component1():Tpublicinlineoperatorfun<T>List<T>.component2():Tpublicin...
takeLast:4takeLast:1 25.flatMap通过遍历,将每一个元素转换为一个新的对象,并创建一个新集合,把新的的对象添加至新的集合并返回新的集合列表。 intList.flatMap{listOf(it+10)}.forEach{println("flatMap:"+it)} flatMap:11flatMap:12flatMap:13flatMap:14flatMap:11 26.map返回一个列表,该列表包含对...
From Java To Kotlin - Your Cheat Sheet For Java To Kotlin 中文支持 Print to Console Java System.out.print("Amit Shekhar");System.out.println("Amit Shekhar"); Kotlin print("Amit Shekhar")println("Amit Shekhar") Constants and Variables ...
From Java To Kotlin - Your Cheat Sheet For Java To Kotlin 中文支持 Print to Console Java System.out.print("Amit Shekhar");System.out.println("Amit Shekhar"); Kotlin print("Amit Shekhar")println("Amit Shekhar") Constants and Variables ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
Kotlin/kotlinx.support - Extension and top-level functions to use JDK7/JDK8 features in Kotlin 1.0. vanshg/KrazyKotlin - A collection of useful Kotlin Extension Configuration Back ⇈ daviddenton/configur8 - A Kotlin port of Configur8 - A Type Safe Configuration API for Kotlin, extendable ...
[](https://github.com/KotlinBy/awesome-kotlin) Table of Contents Official Links Web Code Generators Tests Functional Programming Database Tools Desktop Http Clients Editors Syntax Highlighters ...
Kotlin/kotlinx.support - Extension and top-level functions to use JDK7/JDK8 features in Kotlin 1.0. vanshg/KrazyKotlin - A collection of useful Kotlin Extension hankdavidson/ktime - Extensions to the java8 time library Configuration Back ⇈ npryce/konfig - A Type Safe Configuration API for...