Skip to content

Instantly share code, notes, and snippets.

@jbarciela
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save jbarciela/d2a15ab88a8bfe32d37d to your computer and use it in GitHub Desktop.

Select an option

Save jbarciela/d2a15ab88a8bfe32d37d to your computer and use it in GitHub Desktop.
//
//for use in http://www.scala-js-fiddle.com/
//
object ScalaJSExample extends js.JSApp{
def main() = {
println("test test test")
val xs = Seq(1, 2, 3, 4, 5)
println(xs.toString)
val ys = Seq(4, 5, 6, 7, 8, 9)
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