Created
June 10, 2015 03:17
-
-
Save brweber2/663a047a6b43ab87b9fa to your computer and use it in GitHub Desktop.
This file contains 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
defmodule Meh do | |
def main do | |
"foo" | |
|> (&foo(&2, &1)).("yoyo") | |
end | |
def hard_coded do | |
"foo" | |
|> (&foo("quux", &1)).() | |
end | |
def foo(a,b) do | |
IO.puts "a #{a} and b #{b}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment