ylliX - Online Advertising Network

Intermediate collection avoidance – Jake Wharton

Intermediate collection avoidance 07 February 2024 Given a list of users, extract their names and join them into a comma-separated list. Kotlin’s extension functions on collections make this trivial. users.map { it.name }.joinToString() Writing this in IntelliJ IDEA produces a “weak warning” offering advice. Call chain on collection type may be simplified An intention action […]