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-1ed #scala
Question
How can you use this other indexOf form as an operator?
Answer
s indexOf ('o', 5)

Tags
#odersky-programming-in-scala-1ed #scala
Question
How can you use this other indexOf form as an operator?
Answer
?

Tags
#odersky-programming-in-scala-1ed #scala
Question
How can you use this other indexOf form as an operator?
Answer
s indexOf ('o', 5)
If you want to change selection, open document below and click on "Move attachment"

Basic Types and Operations
n though this indexOf method takes two arguments, you can use it in operator notation. But whenever you call a method that takes multiple arguments using operator notation, you have to place those arguments in parentheses. For example, here's <span>how you use this other indexOf form as an operator (continuing from the previous example): scala> s indexOf ('o', 5) // Scala invokes s.indexOf('o', 5) res1: Int = 8 Any method can be an operator In Scala operators a

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.