Skip to content

Instantly share code, notes, and snippets.

@brianw
Created July 4, 2009 14: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 brianw/140594 to your computer and use it in GitHub Desktop.
Save brianw/140594 to your computer and use it in GitHub Desktop.
val arr = Array(1, 2, 2, 3, 4, 5)
println("I drank a very fine beer, when I was " + (0 /: arr) { _+_ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment