Guest User

Untitled

a guest
Jan 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. candidates :: String -> [(Int, String)]
  2. candidates [] = []
  3. candidates xs |contains (decipherStr (head key) xs) "THE" == True ||  contains (decipherStr (head key) xs) "AND" == True
  4.                 = (head key,decipherStr (head key) xs) : candidates xs
  5.               |otherwise = candidates xs
  6.                       where key = [1..25]
Add Comment
Please, Sign In to add comment