Created
May 2, 2014 12:46
-
-
Save defp/581804685e3658b1464b to your computer and use it in GitHub Desktop.
elixir pipe test
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 Hello do | |
def pipe(a, b) do | |
IO.puts a | |
IO.puts b | |
end | |
end | |
"hello" |> Hello.pipe("world") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello
world