Created
January 3, 2018 00:04
-
-
Save EssenceOfChaos/f83c35ede17929c0a207a6fa95774453 to your computer and use it in GitHub Desktop.
Example pipeline - final
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
# 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