[archives] [homepage]

Problem 2.19
Friday, August 23, 2019; ago; Download .md

SICP Exercise 2.19

Simple-straightforward solution.

(define (first-denomination coin-values)
  (car coin-values))

(define (except-first-denomination coin-values)
  (cdr coin-values))

(define (no-more? coin-values)
  (null? coin-values))