Skip to content

Instantly share code, notes, and snippets.

@Edmundworks
Created June 17, 2018 14:54
Show Gist options
  • Save Edmundworks/7c73c9b267a11042b0e8117c161474f1 to your computer and use it in GitHub Desktop.
Save Edmundworks/7c73c9b267a11042b0e8117c161474f1 to your computer and use it in GitHub Desktop.
Working through Lec2A
define (sum term A next B)
(IF (> A B)
0
(+ (term A)
(sum term
(next A)
next
B))))
define (sum-int A B)
(define identity A) A)
(sum identity A 1+ B))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment