Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- leftImpl ∷ State → State
- leftImpl (State s) =
- case s.direction of
- North → State s { direction = West }
- South → State s { direction = East }
- East → State s { direction = North }
- West → State s { direction = South }
Add Comment
Please, Sign In to add comment