Skip to content

Instantly share code, notes, and snippets.

@beranradek
Created February 18, 2013 09:48
Show Gist options
  • Save beranradek/4976281 to your computer and use it in GitHub Desktop.
Save beranradek/4976281 to your computer and use it in GitHub Desktop.
(for {
m <- models.view // non-strict view pamatující si vykonávané operace
if m.carMaker == CarMaker.Porsche
price <- m.price // transformace na kolekci obsahující ceny
} yield price).sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment