Skip to content

Instantly share code, notes, and snippets.

View rathboma's full-sized avatar

Matthew Rathbone rathboma

View GitHub Profile
@jorgeortiz85
jorgeortiz85 / gist:906503
Created April 6, 2011 20:52
Scala for-comprehensions
// The way Scala for-comprehensions work is that:
for (x <- c) f(x)
// simply translates to:
c.foreach(x => f(x))
// Likewise: