Reputation: 8228
I've been experimenting with Scala lately and I noticed that when I need to look up a function or a class, I have to go to the website or navigate to the local documentation.
Is there a way to read the Scaladoc from inside the interpreter?
Maybe something like help()
in Python.
Upvotes: 6
Views: 818
Reputation: 5605
I'm running the command line scala interpreter for 2.9, and tab-key completion works for me:
val x = List(1,2,3)
x.
Then press TAB
Shows the list of methods.
Not quite full docs, but helpful nonetheless.
Upvotes: 1
Reputation: 11427
Scalaex is a cool Scala-web documentation like Hoogle with an usefull CLI-client.
(But it's not inside the interpreter. Unfortunately I cannot write a comment to your question, so I write this as an answer.)
Upvotes: 2