eclipse-collections
eclipse-collections copied to clipboard
Create primitiveStream methods for IntBag, LongBag and DoubleBag
Since 10.0, we have had primitiveStream on IntList, LongList and DoubleList. This makes the following possible:
List<String> list = IntLists.immutable.of(1, 2, 3)
.primitiveStream()
.mapToObj(Integer::toString)
.toList();
Assertions.assertEquals(List.of("1", "2", "3"), list);
There is no equivalent for IntBag, LongBag, and DoubleBag today. This will additionally require creating spliterator() for each of these.
hi @donraab - happy to take a look at this
Thanks for volunteering @Desislav-Petrov! I have assigned the issue to you.
Is this issue still open @donraab ?