Skip to content

Instantly share code, notes, and snippets.

@kouddy
Created April 11, 2015 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kouddy/2cc8d46ef49557254d0d to your computer and use it in GitHub Desktop.
Save kouddy/2cc8d46ef49557254d0d to your computer and use it in GitHub Desktop.
(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