RosettaCodeData/Task/Count-in-octal/Elixir/count-in-octal-2.elixir

5 lines
87 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Stream.unfold(0, fn n ->
IO.puts Integer.to_string(n,8)
{n,n+1}
end) |> Stream.run