It seems easy to find general info on a specific 'operator' (method, syntactic sugar), but I can't seem to find anything that has a list of all, or even just most, of these goodies. As such, it makes it fairly difficult, or at least overly time consuming, to work through learning the language.

I have already looked over this question. While it has great information, and definitely shows you how to find any information you need, I was hoping for something like a 'pocket ref' that just had all the relevant info and was only dedicated to that.

So, my question is this:

  • Is there a such a list?
  • Am I getting ahead of myself by looking for such a reference early on in learning the language?

Thanks in advance.

有帮助吗?

解决方案

Well, a list of all operators makes as much sense as a list of all methods in the library, regardless of the type. It isn't going to be particularly useful except for finding information about a specific operator.

However, if you do want one, at any ScalaDoc site (http://www.scala-lang.org/api/current/ for the standard library) there is an alphabetic index just under the search bar. The first link (#) lists all the non-alphabetic methods (i.e. "operators").

  1. Many of these are rarely used, or only in specific circumstances.

  2. Obviously, any other library can introduce its own operators, and you'll need to check its own documentation.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top