Tags
#odersky-programming-in-scala-2ed #scala
Question
What does to stand for in this example?

for (i <- 0 to 2)
print(greetStrings(i))

a method call (0).to(2)
if a method takes only one parameter, you can call it without a dot or parentheses.

Tags
#odersky-programming-in-scala-2ed #scala
Question
What does to stand for in this example?

for (i <- 0 to 2)
print(greetStrings(i))

?

Tags
#odersky-programming-in-scala-2ed #scala
Question
What does to stand for in this example?

for (i <- 0 to 2)
print(greetStrings(i))

a method call (0).to(2)
if a method takes only one parameter, you can call it without a dot or parentheses.
If you want to change selection, open document below and click on "Move attachment"

#### pdf

cannot see any pdfs

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions