Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created May 29, 2019 22:26
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 alandipert/3afea76f7627ee9fb21c52be3bc3c2dd to your computer and use it in GitHub Desktop.
Save alandipert/3afea76f7627ee9fb21c52be3bc3c2dd to your computer and use it in GitHub Desktop.
(defun square-list (list)
(reduce (lambda (x xs) (cons (* x x) xs))
list
:initial-value '()
:from-end t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment