#Scala for comprehension translation helper
##Example 1
for {
i <- 1 until n
j <- 1 until i
if isPrime(i + j)
} yield (i, j)
#Scala for comprehension translation helper
##Example 1
for {
i <- 1 until n
j <- 1 until i
if isPrime(i + j)
} yield (i, j)
I hereby claim:
To claim this, I am signing this object:
package org.forgerock.openig.filter; | |
import static org.forgerock.util.time.Duration.duration; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; |