| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Day21
Description
Documentation
input :: [Instruction Char] #
data Instruction a where #
Constructors
| SwapPositions :: Int -> Int -> Instruction a | |
| SwapLetters :: a -> a -> Instruction a | |
| RotateLeft :: Int -> Instruction a | |
| RotateRight :: Int -> Instruction a | |
| RotateLetter :: a -> Instruction a | |
| ReversePositions :: Int -> Int -> Instruction a | |
| MovePosition :: Int -> Int -> Instruction a |
scramble :: Eq c => Instruction c -> [c] -> [c] #
unscramble :: Eq c => Instruction c -> [c] -> [c] #