Canonical list of scala 'operators'

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 (ie "operators").

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

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

  • 链接地址: http://www.djcxy.com/p/72844.html

    上一篇: 进口报表中的箭头是做什么的?

    下一篇: 规范的Scala'运营商'列表