Join Slack
Powered by
is there a way to partition a map ? I want to part...
# getting-started
b
bjonnh
06/13/2019, 5:49 PM
is there a way to partition a map ? I want to partition according to the presence of the key in a list or not
t
Toddobryan
06/13/2019, 6:00 PM
You could partition the keys and then build the maps.
b
bjonnh
06/13/2019, 6:06 PM
yep that's what I ended doing, but I was wondering why partition didn't exist for maps but exist for collections like lists.
t
Toddobryan
06/13/2019, 6:09 PM
You can always write an extension function! 🙂
p
Pavlo Liapota
06/13/2019, 6:59 PM
Maybe something like this? 🙂
https://pl.kotl.in/cyLgMusgE
115
Views
Open in Slack
Previous
Next