daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. leftImpl ∷ State → State
  2. leftImpl (State s) =
  3.   case s.direction of
  4.     North → State s { direction = West }
  5.     South → State s { direction = East }
  6.     East  → State s { direction = North }
  7.     West  → State s { direction = South }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top