Created
July 23, 2012 12:32
-
-
Save dinoSpeech/3163386 to your computer and use it in GitHub Desktop.
Higher-order function test suite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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