Skip to content

Instantly share code, notes, and snippets.

@dimdim2
Last active December 17, 2015 11:39
Show Gist options
  • Save dimdim2/5603784 to your computer and use it in GitHub Desktop.
Save dimdim2/5603784 to your computer and use it in GitHub Desktop.
val nums = 1 to 100
(nums.sum * nums.sum) - nums./:(0)((a, n) => a + (n*n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment