scala for yield setting a value
- by coubeatczech
Hi, I want to create a list of GridBagPanel.Constraints.
I read it in the scala programming book, that there is a cool for-yield construction, but I probably haven't understood the way it works correctly, because my code doesn't compile. Here it is:
val d = for {
i <- 0 until 4
j <- 0 until 4
} yield {…