Skip to content

Instantly share code, notes, and snippets.

@jfacoustic
Created October 13, 2020 11:52
Show Gist options
  • Save jfacoustic/905063d2a9f9c62dfaa3cf315d294ea5 to your computer and use it in GitHub Desktop.
Save jfacoustic/905063d2a9f9c62dfaa3cf315d294ea5 to your computer and use it in GitHub Desktop.
1.30 SICP
(define (sum term a next b)
(define (iter a result)
(if (> a b)
result
(iter (next a) (+ result (term a)))))
(iter a 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment