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

5 lines
87 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
Stream.unfold(0, fn n ->
IO.puts Integer.to_string(n,8)
{n,n+1}
end) |> Stream.run