Why kotlin doesn’t have `Iterable<Tuple>#unz...
# kontributors
t
Why kotlin doesn’t have
Iterable<Tuple>#unzip
? I found an issue about `Iterable<Pair>#unzip`; https://youtrack.jetbrains.com/issue/KT-5793 I wonder it doesn’t say about
Iterable<Tuple>
.
i
There's no such type
Tuple
in the standard library.
t
Oh, I was mistaken.
Triple
is correct.
i
We do not have
zip
operation that produces
List<Triple<...>>
, so that's why the inverse operation
unzip
for triples is missing.
t
I get it. I want
List<Triple<...>>#zip
because I believe useful for us. (FYI, Scala has
zipped
function) May I make PR to https://github.com/JetBrains/kotlin? or Should I make an issue to YouTrack?
i
Better to start with an issue to discuss use cases.
👍 1