Skip to content

Instantly share code, notes, and snippets.

@raymcdermott
Created February 12, 2011 19:09
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 raymcdermott/824010 to your computer and use it in GitHub Desktop.
Save raymcdermott/824010 to your computer and use it in GitHub Desktop.
\ is an alias for foldLeft and / is an alias for foldRight
def getTotalItemFees = {
items.\(0.0d)((accum, item) => accum + (item._1.getFee * item._2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment