Skip to content

Instantly share code, notes, and snippets.

View luislee818's full-sized avatar

Dapeng Li luislee818

View GitHub Profile
@luislee818
luislee818 / elixir_function_invocations.exs
Last active March 28, 2018 09:17
Illustrating Elixir's function invocation with pipe operators
defmodule Funcs do
def greet(name) do
"Hola #{name}"
end
def test do
# functions as target of pipe
IO.puts test_1()
IO.puts test_2()
IO.puts test_3()