Skip to content

Instantly share code, notes, and snippets.

@songfei1983
Last active August 29, 2015 14:14
Show Gist options
  • Save songfei1983/6ebfef1e6f19a9772d2b to your computer and use it in GitHub Desktop.
Save songfei1983/6ebfef1e6f19a9772d2b to your computer and use it in GitHub Desktop.
1から100までの奇数の平方合 ref: http://qiita.com/songfei1983/items/66965bc935039d4a9791
scala> (0/:(0 to 100))((s,i)=>s+i%2*i*i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment