Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Rathbone rathboma

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