Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#odersky-programming-in-scala-2ed #scala
Question
If you are writing a partially applied function expression in which you leave off all parameters, such as println _ or sum _, you can express it more concisely by [...] if a function is required at that point in the code, e.g. instead of
someNumbers.foreach(println _)
you could just write
[...]
Answer
leaving off the underscore

you could just write
someNumbers.foreach(println)

Tags
#odersky-programming-in-scala-2ed #scala
Question
If you are writing a partially applied function expression in which you leave off all parameters, such as println _ or sum _, you can express it more concisely by [...] if a function is required at that point in the code, e.g. instead of
someNumbers.foreach(println _)
you could just write
[...]
Answer
?

Tags
#odersky-programming-in-scala-2ed #scala
Question
If you are writing a partially applied function expression in which you leave off all parameters, such as println _ or sum _, you can express it more concisely by [...] if a function is required at that point in the code, e.g. instead of
someNumbers.foreach(println _)
you could just write
[...]
Answer
leaving off the underscore

you could just write
someNumbers.foreach(println)
If you want to change selection, open document below and click on "Move attachment"

Open it
If you are writing a partially applied function expression in which you leave off all parameters, such as println _ or sum _, you can express it more concisely by leaving off the underscore if a function is required at that point in the code, e.g. instead of someNumbers.foreach(println _) you could just write someNumbers.foreach(println) <

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.