is there a way to partition a map ? I want to part...
# getting-started
b
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
You could partition the keys and then build the maps.
b
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
You can always write an extension function! 🙂
p
Maybe something like this? 🙂 https://pl.kotl.in/cyLgMusgE
115 Views