Java, Eclipse Collections, Open Source, Primitive Collections, Java Stream Api.
Collectors2.collectByte( Byte::parseByte, ByteLists.mutable::empty)); ByteList expected = ByteLists.mutable.with( (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5); Assertions.assertEquals(expected, bytes); } Stream<Character> collect to CharSet This example converts a Stream of Character instances