max
07/02/2016, 10:53 PM@get:Element
or @field:Element
.cedric
07/03/2016, 12:54 AMsimonorono
07/03/2016, 2:29 AM-include-runtime
option is passed to it.
Does anyone know or can point me to a source code file?cedric
07/03/2016, 2:55 AMsimonorono
07/03/2016, 8:58 AMsimonorono
07/03/2016, 9:03 AMyawkat
07/03/2016, 10:24 AMyawkat
07/03/2016, 10:25 AMyawkat
07/03/2016, 10:25 AMyawkat
07/03/2016, 10:27 AMvoddan
07/03/2016, 10:28 AMyawkat
07/03/2016, 10:28 AMvoddan
07/03/2016, 10:29 AMvoddan
07/03/2016, 10:30 AMyawkat
07/03/2016, 10:32 AMyawkat
07/03/2016, 10:33 AMyawkat
07/03/2016, 10:33 AMmohsenk
07/03/2016, 1:51 PMjbnizet
07/03/2016, 2:11 PMjbnizet
07/03/2016, 2:14 PMsupaham
07/03/2016, 2:15 PMfmd
07/03/2016, 2:17 PMconstructor
keyword?supaham
07/03/2016, 2:19 PMsupaham
07/03/2016, 2:20 PMhttp://supa.me/YNkb1q.png▾
jbnizet
07/03/2016, 2:22 PMravna
07/03/2016, 3:00 PMval sorted = map.toSortedMap(compareBy<String> { it.length }.thenBy { it })
ravna
07/03/2016, 3:00 PMvoddan
07/03/2016, 3:10 PMsupaham
07/03/2016, 3:30 PMmap.toSortedMap(compareBy<String> { it.length }.thenBy { it })
Which sorts the map by the string length, and then by the string contents. Simply, when you say thenBy { it }
it says use the compare method provided in it
(it being the String class)
See: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.comparisons/compare-by.htmlravna
07/03/2016, 3:33 PM