Advertisement
DaveR27

Bool -> (Int, Bool)

Apr 4th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. move :: Bool -> (Int, Bool)
  2. move status = (1, Status)
  3.  
  4. if (snd(move True))
  5.     then
  6.         do
  7.         print "x"
  8.         move False
  9. else
  10.     dosomething
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement