Skip to content

Instantly share code, notes, and snippets.

@monkeygroover
Last active August 29, 2015 14:21
Show Gist options
  • Save monkeygroover/39441d914db1be7e9f46 to your computer and use it in GitHub Desktop.
Save monkeygroover/39441d914db1be7e9f46 to your computer and use it in GitHub Desktop.
object ScalaJSExample extends js.JSApp{
def main() = {
val xs = Seq(1, 2, 3)
println(xs.toString)
val ys = Seq(4, 5, 6)
println(ys.toString)
val zs = for{
x <- xs
y <- ys
} yield x * y
println(zs.toString)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment