Created
April 11, 2015 01:51
-
-
Save kouddy/2cc8d46ef49557254d0d to your computer and use it in GitHub Desktop.
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 (square x) (* x x)) | |
(define (square-list items) | |
(if (null? items) | |
null | |
(cons (square (car items)) | |
(square-list (cdr items))))) | |
(define (square-list-map items) | |
(map square items)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment