Skip to content

Instantly share code, notes, and snippets.

@EssenceOfChaos
Created January 3, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EssenceOfChaos/f83c35ede17929c0a207a6fa95774453 to your computer and use it in GitHub Desktop.
Save EssenceOfChaos/f83c35ede17929c0a207a6fa95774453 to your computer and use it in GitHub Desktop.
Example pipeline - final
# using pipelines
"freddy"
|> String.capitalize()
|> String.reverse()
|> String.ends_with?("F")
#=> true
# using nested functions
String.ends_with?(String.reverse(String.capitalize("freddy")), "F")
#=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment