Java, Eclipse Collections, Open Source, Primitive Collections, Java Stream Api.
BiConsumer IntList expected = IntLists.mutable.of(1, 2, 3, 4, 5); Assertions.assertEquals(expected, ints); } LongStream collect to LongSet @Test public void longStreamToLongSet() { LongStream longStream = LongStream.rangeClosed(1, 5); // Three Musketeer collect LongSet longs = longStream.collect(