Skip to content

Instantly share code, notes, and snippets.

View laurentvaills's full-sized avatar

Laurent Vaills laurentvaills

View GitHub Profile
@laurentvaills
laurentvaills / forcomptran.md
Created November 9, 2012 11:04 — forked from loicdescotte/Forcomptran.md
Scala for comprehension translation helper

#Scala for comprehension translation helper

##Example 1

    for {
         i <- 1 until n
         j <- 1 until i
         if isPrime(i + j)
 } yield (i, j)