Permalink
Browse files

Sum of Pairs: Common Lisp solution by me

  • Loading branch information...
1 parent 75522b3 commit 03a7c938929be7bc4b3bb3a8ace56bfabf1566df @apauley committed Sep 17, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 CodeSnippets/SumPairs/sumpairs.lisp
@@ -0,0 +1,4 @@
+; Common Lisp solution by Andreas Pauley
+
+(defvar a '(1 2 3 4 5))
+(mapcar #'+ a (cdr a))

0 comments on commit 03a7c93

Please sign in to comment.