Textonyms: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
Added Kotlin
PureFox (talk | contribs)
→‎{{header|Kotlin}}: Changed variable name 'length' to 'longest'
Line 1,222:
println(report)
 
val lengthlongest = textonyms.sortedByDescending { it.first.length }
val ambiguous = lengthlongest.sortedByDescending { it.second.size }
 
println("Top 8 in ambiguity:\n")
Line 1,235:
println("Length Textonym Words")
println("====== ============== =====")
for (l in lengthlongest.take(6)) println(fmt.format(l.first.length, l.first, l.second))
}