Scaladoc from scala interpreter

I have been experimenting with Scala recently, and I noticed that when I need to find a function or class, I need to go to the site or go to the local documentation.

Is there a way to read Scaladoc inside the interpreter?

Maybe something like help() in Python.

+6
source share
2 answers

Scalaex is a cool Scala-web documentation like Hoogle with a useful CLI client .

(But this is not inside the interpreter. Unfortunately, I cannot write a comment on your question, so I am writing this as an answer.)

+2
source

I run the scala command line interpreter for 2.9, and tab completion works for me:

 val x = List(1,2,3) x. 

Then press tab

Shows a list of methods.

Not quite complete documents, but nonetheless useful.

+1
source

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


All Articles