Join Slack
Powered by
Yes. @hho's example can be cleaned up a little bit...
# getting-started
m
marstran
09/26/2017, 2:57 PM
Yes. @hho's example can be cleaned up a little bit with some destructuring by the way:
listOf(1, 2, 3, 4, 5, 6).chunked(2) { (a, b) -> a to b }.toMap()
.
4
Views
Open in Slack
Previous
Next