Created
November 9, 2015 07:35
-
-
Save Kavec/c153e46be4187f3777d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "blah" do | |
loop = fn f -> | |
receive do | |
:die -> exit(:normal) | |
end | |
f.(f) | |
end | |
y = fn f -> | |
fn -> | |
f.(f) | |
end | |
end | |
pid = spawn(y.(loop)) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "blah" do | |
loop = fn -> | |
receive do | |
:die -> exit(:normal) | |
end | |
fn.() | |
end | |
pid = spawn(loop) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "blah" do | |
loop = fn -> | |
receive do | |
:die -> exit(:normal) | |
end | |
__FN__.() | |
end | |
pid = spawn(loop) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment