eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Create primitiveStream methods for IntBag, LongBag and DoubleBag

Open donraab opened this issue 2 years ago • 3 comments

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.

donraab avatar Apr 16 '23 23:04 donraab

hi @donraab - happy to take a look at this

Desislav-Petrov avatar Apr 19 '23 20:04 Desislav-Petrov

Thanks for volunteering @Desislav-Petrov! I have assigned the issue to you.

donraab avatar Apr 19 '23 20:04 donraab

Is this issue still open @donraab ?

Tushar1619 avatar Jul 12 '24 20:07 Tushar1619