Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@laynor
Created October 23, 2017 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laynor/beee3c8201c4bffef5eaabb658d68ed7 to your computer and use it in GitHub Desktop.
Save laynor/beee3c8201c4bffef5eaabb658d68ed7 to your computer and use it in GitHub Desktop.
defmodule Foo do
def proc(l) do
IO.inspect(l)
receive do
msg -> proc([msg|l])
end
end
def procMain do
proc([])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment