Zipping streams using JDK8 with lambda (java.util.stream.Streams.zip)

前端 未结 14 1384
旧巷少年郎
旧巷少年郎 2020-11-21 23:24

In JDK 8 with lambda b93 there was a class java.util.stream.Streams.zip in b93 which could be used to zip streams (this is illustrated in the tutorial Exploring Java8 Lambda

14条回答
  •  长发绾君心
    2020-11-21 23:43

    The Lazy-Seq library provides zip functionality.

    https://github.com/nurkiewicz/LazySeq

    This library is heavily inspired by scala.collection.immutable.Stream and aims to provide immutable, thread-safe and easy to use lazy sequence implementation, possibly infinite.

提交回复
热议问题