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.

  1. ct: Convert a list of base 2 digits into an integer.

     46 == ct [1,0,1,1,1,0] 
    
  2. tobin: Convert an integer into a list of base 2 digits.

     [1,0,1,1,1,0] == tobin 46
    
Last modified August 18, 2023: 2022-2023 End State (7352e87)