CS 1410-20 Lab 3

  1. Implement gen-milks, which takes a natural number n and produces a list with n 'milks.
  2. Implement each-bigger? which takes two lists of numbers, where the two lists have the same length. The result should be true if each element of the first list is bigger than the corresponding element of the second list. For example (each-bigger? (list 1 5 3) (list 0 3 2)) should produce true, while (each-bigger? (list 1 5 3) (list 0 6 2)) should produce false.
  3. Implement all-bigger? which takes two lists of numbers. The result should be true if each element of the first list is bigger than every number in the second list. For example (all-bigger? (list 1 5 3) (list 0 3 2)) should produce false, while (all-bigger? (list 2 5 3) (list 0 1)) should produce true.

Last update: Wednesday, September 14th, 2011
mflatt@cs.utah.edu