Created
October 9, 2016 14:54
-
-
Save Fasand/45997388e9156b641976152e88ef6d3b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
lookUp :: Char -> [(Char, Char)] -> Char | |
lookUp c [] = c | |
lookUp c charset = if not (null y) then head y else c | |
where y = [b | (a,b) <- charset, a == c] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment