Skip to content

Instantly share code, notes, and snippets.

@dinoSpeech
Created July 23, 2012 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dinoSpeech/3163386 to your computer and use it in GitHub Desktop.
Save dinoSpeech/3163386 to your computer and use it in GitHub Desktop.
Higher-order function test suite
(define sum (make-aggregate +))
(sum (list 1 2 3)) ; 6
(define product (make-aggregate *))
(product (list 2 3 4)) ; 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment