Collections • Lesson 26/100+50 XP

Collection Operations

Common collection functions

📚
Learn
💻
Code
Quiz
🏆
Practice
Complete

📚 Lý thuyết

Kotlin cung cấp nhiều **operations** mạnh mẽ cho collections: **Aggregations:** - sum(), average(), count() - max(), min(), maxBy(), minBy() **Transformations:** - sorted(), sortedBy(), sortedDescending() - reversed(), shuffled() - distinct(), take(n), drop(n) **Access:** - first(), last(), firstOrNull() - find { }, findLast { }