To add to gkamal's answer , itβs important to understand that methods whose names end in a colon are right-associative. Therefore, the notation l ::: List(3) coincides with the notation List(3).:::(l) . In this case, it does not matter, since both operands are lists, but in general you will need this knowledge to find such methods in scaladocs.
It also helps to find out that scaladocs have a full index of all methods (and classes, etc.) with symbolic names. You can get to it by pressing # in the upper left corner.
Aaron Novstrup Oct 01 '11 at 3:26 a.m. 2011-10-01 15:26
source share