Skip to content

Instantly share code, notes, and snippets.

@ysb33r
Created April 15, 2013 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysb33r/5388096 to your computer and use it in GitHub Desktop.
Save ysb33r/5388096 to your computer and use it in GitHub Desktop.
Russel Winder did a lightning talk at ACCU 2013 titled "Who needs C++ when you have D and Go": http://www.slideshare.net/Russel_Winder/who-needscwhenyouhaved-andgo I decided to address the same problem using a one-liner in Groovy
println ((0..<100).step(7).collect{it*it}.sum())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment