r13 w = map (\c -> chr ((((ord c + 13) - 97) `mod` 26) + 97) w
Haskell Shortest Rot13
by https://www.google.com/accounts/o8/id?id=AItOawkpAfEP31fRzpQ5wtVTGKZAHPi6zN5xh4w,
November 08, 2010 22:40,
2 refactorings, tagged with short
g = getLine r = toRational c = concat ...
Haskell EGCD
by https://www.google.com/accounts/o8/id?id=AItOawkpAfEP31fRzpQ5wtVTGKZAHPi6zN5xh4w,
November 08, 2010 08:18,
No refactoring, tagged with short
please refactor to less cha...
compress :: [Int] -> [[Int]]
compress (x:xs) = let (y,ys) = walk x xs
in [x,y]:compress ys
...
Haskell compressing an array of int...
I took the idea from "Alec ...
Compo shortest rot 13