Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
input :: [Instruction Char] #
data Instruction a where #
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] #