Truncates the stream to be no longer than maxSize.
maxSize
final first5 = IntStream.range(1, 100) .limit(5);
IntStream limit(int maxSize);