Skip to content

Instantly share code, notes, and snippets.

@brweber2
Created June 10, 2015 03:17
Show Gist options
  • Save brweber2/663a047a6b43ab87b9fa to your computer and use it in GitHub Desktop.
Save brweber2/663a047a6b43ab87b9fa to your computer and use it in GitHub Desktop.
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