Working with encrypted text, I need to write 2 functions that does not work, one should take all the characters, except for letters, the second to return these characters in the new text. (Letters in one register only great) Example:
I'M GOING, I'LL BE THERE. "HELLO WORLD!"
After the first function turns a string : ЯЕДУСКОРОБУДУЗДРАВСТВУЙМИРСПОКОЙНОЙНОЧИ
And after the second comes the original text. I think you need 3 functions, the first returns a list of pairs of String -> [(Char, Int)] Where the symbol and records the number in the string, ignoring the Letters. The second returns a string with no characters, only letters, well this feature is easy, it is not needed)) String -> String
Well, the third function is the list of pairs, and the resulting string is to put all the characters into place.
String -> [(Char, Int)] -> String
Please help, does not work(