Thanks for the link.
Re the magic, would you expect:
s = Stream.unfold(1, fn(x) ->
receive do
:next -> IO.puts "hi";{x, x+2}
end
end)
Stream.run(s)
… to loop forever? It has similar semantics. I think I could probably implement this with the available tools, yes ![]()


















