Join Slack
Powered by
what would be the best way to merge items in a lis...
# announcements
k
kirillrakhman
04/01/2016, 10:34 AM
what would be the best way to merge items in a list that match some criteria and leave others intact? I can think of
list.groupBy { ... }.values.map{ it.reduce { x1, x2 -> merge(x1,x2) } }
Open in Slack
Previous
Next