Skip to content

Instantly share code, notes, and snippets.

@BrooklinJazz
Last active June 8, 2021 15:38
Show Gist options
  • Save BrooklinJazz/41b0112dac42e1af4c1f9d8880c0f069 to your computer and use it in GitHub Desktop.
Save BrooklinJazz/41b0112dac42e1af4c1f9d8880c0f069 to your computer and use it in GitHub Desktop.
Elixir Pipe Example
# the first argument for string.split is the return value of String.upcase("Hello Brooklin")
# for functions with more than 1 parameter such as String.split,
# skip the first argument because it's provided implicitly by the Pipe |>
"Hello Brooklin" |> String.upcase |> String.split(" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment