The following recipes will be covered in this chapter:
- How to merge two collections
 
- Splitting original collection into pair of collections
 
- Sorting a list by specified comparator
 
- Sorting in descending order
 
- Parsing a JSON response using Gson
 
- How to filter and map using lambda expressions
 
- How to sort a list of objects and keep null objects at the end
 
- How to implement a lazy list in Kotlin
 
- How to pad a string in Kotlin
 
- How to flatten an array or map
 
- How to sort collection by multiple fields in Kotlin
 
- How to use limit in Kotlin list
 
- How to create a 2D array in Kotlin
 
- How to skip the first N entries in Kotlin