Skip to content

Commit

Permalink
Sum of Pairs: Haskell solution by Danie Roux
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pauley committed May 27, 2010
1 parent 4469a51 commit 78f12b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CodeSnippets/SumPairs/sumpairs.hs
@@ -0,0 +1,4 @@
{- Haskell solution by Danie Roux -}

let x = [1, 2, 3, 4, 5]
zipWith (+) x (tail x)

0 comments on commit 78f12b8

Please sign in to comment.