Why doesn't the Scala REPL list all the features when using TAB termination?

I just started programming in Scala, and I noticed that the defeat of the TAB termination in the Scala REPL does not show all available methods.

eg. I want to appreciate this expression -

"Hello".intersect("World")

So i type

"Hello".inter

and press TAB and expect that "intersect" will display as a valid parameter, but it will not display.

Why is this so? I am sure this is not a mistake. I have no other examples yet.

+4
source share
1 answer

Intersectis not String, but implicitly inferred from ArrayOps, and REPL auto-complete does not yet cover implicits. So this is not quite a mistake, just (desperately) missing a function.

. , .

: Scala REPL ,

https://groups.google.com/forum/#!topic/scala-language/B34-TqH8pGU

+8

Source: https://habr.com/ru/post/1535215/


All Articles