Last active
August 29, 2015 14:14
-
-
Save songfei1983/6ebfef1e6f19a9772d2b to your computer and use it in GitHub Desktop.
1から100までの奇数の平方合 ref: http://qiita.com/songfei1983/items/66965bc935039d4a9791
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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