Created
August 11, 2013 19:50
-
-
Save vanstee/6206592 to your computer and use it in GitHub Desktop.
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
iex(1)> # doesn't work | |
nil | |
iex(2)> String.strip("cat猫猫猫", ?猫) | |
"cat猫猫猫" | |
iex(3)> # works | |
nil | |
iex(4)> String.strip("cat---", ?-) | |
"cat" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment