Write while loop equivalent in elixir

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