SHARE
TWEET

Untitled

a guest Apr 21st, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. toBin 0 = [0]
  2. toBin n
  3.         | n `mod` 2 == 1 = toBin (n `div` 2) ++ [1]
  4.         | n `mod` 2 == 0 = toBin (n `div` 2) ++ [0]
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