Skip to content

Instantly share code, notes, and snippets.

@beranradek
Created February 18, 2013 09:43
Show Gist options
  • Save beranradek/4976251 to your computer and use it in GitHub Desktop.
Save beranradek/4976251 to your computer and use it in GitHub Desktop.
(for {
m <- models.view // vytvoří non-strict view pamatující si lazy 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