Created
November 11, 2012 10:26
-
-
Save Javran/4054438 to your computer and use it in GitHub Desktop.
4-consecutive-underlines replacement?
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
ulReplace :: String -> String | |
ulReplace ('_':'_':'_':'_':xs) = "1111" ++ xs | |
ulReplace (x:xs) = x :(replace xs) | |
ulReplace x = x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment