That’s the beauty of lazy streams
the original stream is actually infinite, but it only gets realized in a finite number of elements due to Stream.take and Enum.find.
That’s the beauty of lazy streams
the original stream is actually infinite, but it only gets realized in a finite number of elements due to Stream.take and Enum.find.