Last active
June 8, 2021 15:38
-
-
Save BrooklinJazz/41b0112dac42e1af4c1f9d8880c0f069 to your computer and use it in GitHub Desktop.
Elixir Pipe Example
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
# 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