What method are you calling here and where is it defined? val numNames = Array("zero", "one", "two")
Answer
a factory method apply which takes variable number of argumetns and is defined on Array companion object
the code gets transformed to val numNames2 = Array.apply("zero", "one", "two")
Tags
#odersky-programming-in-scala-2ed #scala
Question
What method are you calling here and where is it defined? val numNames = Array("zero", "one", "two")
Answer
?
Tags
#odersky-programming-in-scala-2ed #scala
Question
What method are you calling here and where is it defined? val numNames = Array("zero", "one", "two")
Answer
a factory method apply which takes variable number of argumetns and is defined on Array companion object
the code gets transformed to val numNames2 = Array.apply("zero", "one", "two")
If you want to change selection, open document below and click on "Move attachment"
pdf
cannot see any pdfs
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised 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.