Safe Haskell | Safe |
---|
Exercise 2
Exercise 3
int2let :: Int -> Char Source #
Transform an integer into a lowercase letter (where 0 is a
and
25 is z
).
shift :: Int -> Char -> Char Source #
Shift a lowercase letter by a given number of positions in the alphabet.
encode :: Int -> String -> String Source #
Shift all lowercase letters in the input string by a given number of positions in the alphabet, thereby applying Caesar's cipher.