Closed numeralnathan closed 3 years ago
IntStreamEx already has toBitSet(). This only works if the integers are non-negative and not too large. I have a stream of integers that can range from -1 to 31. Please add Set toSet() method to handle this case.
Hello! You can easily do .boxed().toSet(). I don't want to add a shortcut here, because it should be explicit that numbers will be boxed in this case.
.boxed().toSet()
IntStreamEx already has toBitSet(). This only works if the integers are non-negative and not too large. I have a stream of integers that can range from -1 to 31. Please add Set toSet() method to handle this case.