Session
Kotlin Standard Library Gems
Kotlin's standard library has a lot of useful functionality to offer. In this presentation, we will unearth some hidden gems that will come in handy the next time you write Kotlin code. Because if you know how to wield it, the Kotlin standard library is a powerful tool that can help you be more productive in solving your problems and be more expressive in your code.
The key takeaways:
1. Working with collections: use functions like 'chunked', 'windowed', 'zip', and 'zipWithNext' for concise data processing. Apply fold and reduce operations for advanced aggregations.
2. Scope functions: understand the purpose of 'let', 'apply', and 'also', and how to use them effectively while avoiding common mistakes.
3. Type-safe builders, a.k.a DSL. Learn how to construct collections and objects efficiently, manage scoped mutability, and utilize type inference.
4. Other hidden features: simplify tasks with functions like 'filterIsInstance' for type filtering, 'compareBy' for multi-property sorting, 'groupBy' for data organization, 'coerceIn' for value clamping, and more!
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top