Skip to content

Instantly share code, notes, and snippets.

@shintakezou
Created March 30, 2012 21:19
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 shintakezou/2255221 to your computer and use it in GitHub Desktop.
Save shintakezou/2255221 to your computer and use it in GitHub Desktop.
fold left and lambda in common lisp
(reduce (lambda (x y) (+ x (* y 2))) '(1 2 3 4 5) :initial-value 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment