Let's say we have the following method.
void some(int id, int... otherIds) {
}
How can I create a single IntStream with those two arguments?
IntStream.concat(
IntStream.of(id),
Optional.ofNullable(otherIds)
.map(IntStream::of)
.orElseGet(IntStream::empty)
);
It seems verbose. Do we have any concise idiom for that?