fork download
  1. object Main extends App {
  2.  
  3. val list = List(1, 2, 3, 4, 5)
  4. val list2 = List(6, 7, 8, 9, 10)
  5.  
  6. println(
  7.  
  8. for{
  9. x <- list
  10. y <- list2
  11. } yield x ^ y
  12.  
  13. )
  14. }
Success #stdin #stdout 0.4s 381952KB
stdin
Standard input is empty
stdout
List(7, 6, 9, 8, 11, 4, 5, 10, 11, 8, 5, 4, 11, 10, 9, 2, 3, 12, 13, 14, 3, 2, 13, 12, 15)