Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2013  |  syntax: None  |  size: 0.10 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -- (c) Davor Babic <davor@davor.se>
  2. square :: Integer -> Integer
  3. square n = sum $ take n [n,n..]