Skip to content

Commit

Permalink
Sum of Pairs: Common Lisp solution by me
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pauley committed May 27, 2010
1 parent 75522b3 commit 03a7c93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CodeSnippets/SumPairs/sumpairs.lisp
Original file line number Diff line number Diff line change
@@ -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.