Returns asJavaFunction { x: A => toStream(f(x)) }.
Returns asJavaFunction { x: A => toStream(f(x)) }.
Note that from Scala 2.12 on (at least 2.12.6, if not a lot earlier) the asJavaFunction call is unnecessary.
Returns toStream(immutable.IndexedSeq(x)).
Returns ScalaStreamSupport.stream(xs).
Utility for creating Java Streams from Scala collections. This utility is implemented with the scala-java8-compat library.