Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. decEnigma :: String -> [(Char, Char)] -> String
  2. decEnigma (y:ys) ((a,b):xs) = (y == a) = b : teste ys a b
  3.  
  4. teste :: String -> Char -> Char -> String
  5. teste [] ch ch1 = ""
  6. teste (x:xs) ch ch1 = (x == ch) = ch1 : teste xs ch ch1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement