Created
October 29, 2011 22:27
-
-
Save philipschwarz/1325176 to your computer and use it in GitHub Desktop.
multiply-by-two
This file contains hidden or 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 (multiply-by-two list) | |
(if (null? list) | |
nil | |
(cons (* 2 (car list)) | |
(cdr list)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment