Permalink
Browse files

Sum of Pairs: Haskell solution by Danie Roux

  • Loading branch information...
1 parent 2745f03 commit 8bf2184bffd2114c172b8c888258dd2f4e6c21a9 @apauley committed Sep 18, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 CodeSnippets/SumPairs/sumpairs.hs
@@ -1,2 +1,4 @@
+-- Haskell solution by Danie Roux
+
a = [1, 2, 3, 4, 5]
main = print (zipWith (+) a (tail a))

0 comments on commit 8bf2184

Please sign in to comment.