Is there a version of `Sequence.zipWithNext` that ...
# getting-started
c
Is there a version of
Sequence.zipWithNext
that emits on the very first item (with one item in the pair being null), rather than waiting for the first 2 emissions to be sent?
k
You can write it yourself:
Copy code
fun Sequence<T>.foo() = (sequenceOf(null) + this).zipWithNext()
🙌 1