Skip to content

Instantly share code, notes, and snippets.

Avatar

Caroline Ribeiro caroltr

  • Brazil
View GitHub Profile
@caroltr
caroltr / Extensions.kt
Last active May 4, 2020
Kotlin Word Count Challenge
View Extensions.kt
fun Map<String, Int>.orderDescendingByValue(): Map<String, Int> {
return this.toList().sortedByDescending { it.second }.toMap()
}