Navigation :
Chapter 3 Daily 01
Design process:
- examples which turn into checkExpects
- signatures
- break down into simple pieces
The checks that you write should go from simple to complicated, giving
you a road map for how to build the function.
-
ct
: Convert a list of base 2 digits into an integer.
46 == ct [1,0,1,1,1,0]
-
tobin
: Convert an integer into a list of base 2 digits.
[1,0,1,1,1,0] == tobin 46