We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad316e2 + 028e85c commit b362424Copy full SHA for b362424
src/main/scala/stdlib/ForExpressions.scala
@@ -10,8 +10,8 @@ object ForExpressions extends FlatSpec with Matchers with org.scalaexercises.def
10
/** For expressions can nest, with later generators varying more rapidly than earlier ones:
11
*/
12
def canBeNestedForExpressions(res0: Int, res1: Int) {
13
- val xValues = Range(1, 5)
14
- val yValues = Range(1, 3)
+ val xValues = 1 to 4
+ val yValues = 1 to 2
15
val coordinates = for {
16
x ← xValues
17
y ← yValues
0 commit comments