scala / scala-library-next

backwards-binary-compatible Scala standard library additions
Apache License 2.0
69 stars 17 forks source link

Add lazyZipAll to Iterable similar to zipAll #62

Open neontorrent opened 3 years ago

neontorrent commented 3 years ago

Regular lazyZip does not handle the situation where an element cannot be discarded but rather a default value should be used.

NthPortal commented 3 years ago

just for reference, how would one currently write the equivalent code for that, so we can see what the cost of not having it is?