Join Slack
Powered by
Is there anything in the stdlib that allows zippin...
# announcements
j
jh
10/05/2017, 11:21 AM
Is there anything in the stdlib that allows zipping two collections together, but padding the result with nulls if one collection is shorter? Kind of like
fun <T, R> Iterable<T>.zipPadded(other: Iterable<R>): List<Pair<T?,R?>>
i
ilya.gorbunov
10/05/2017, 11:26 AM
There's a request for that function:
https://youtrack.jetbrains.com/issue/KT-13017
j
jh
10/05/2017, 11:26 AM
Thank you
i
ilya.gorbunov
10/05/2017, 11:27 AM
Could you describe your use case, here or in that issue?
j
jh
10/05/2017, 11:27 AM
will do
Open in Slack
Previous
Next