Java, Eclipse Collections, Open Source, Primitive Collections, Java Stream Api.
stream.collect( Collectors2.collectShort( Sh::value, ShortBags.mutable::empty)); ShortBag expected = ShortBags.mutable.with( (short) 1, (short) 2, (short) 3, (short) 4, (short) 5); Assertions.assertEquals(expected, shorts); } Stream<BigInteger> collect to IntList I didn’t know there were four