Greetings. Assuming I have: ```Map<Int,List<...
# arrow
r
Greetings. Assuming I have:
Copy code
Map<Int,List<ONE>>
Map<Int,List<TWO>>
...
Map<Int,List<N>>
Is there any "instrument" I can zip it to
Map<Int, Tuple<ONE,TWO,...,N>>
where ints represent unique numbers which present in each Map?
The only thing I implemented for now is
Map.align(Map)
and manual folding for
Ior<List<One>,List<Two>>
... Looks ugly, but does what I want 🙂
Seems like that can be improved with `NonEmptyList`s...
s
I'm not sure I understand your use-case correctly.
You can use
zip
but that only combines if the same key is present for all maps. Not sure how you want to turn
List<ONE>
and
List<TWO>
into
Pair<ONE, TWO>
r
Thanks, I'll try it out.