I have an Eclipse Collections IntList
. How can I
IntStream
from this listStream<Integer>
from this listwithout copying the elements?
With Eclipse Collections 10.0 you can now call primitiveStream
directly on IntList
.
IntStream intStream = IntLists.mutable.with(1, 2, 3, 4, 5).primitiveStream();
Stream<Integer> stream = intStream.boxed();