Confused about Scala method calling conventions, specifically the sum function on Seq
问题 I was playing around with the new Scala IDE (Eclipse 3.6.2 + Scala IDE 2.0.0 [Scala 2.9.0]) and I tried to do something simple like this: (1 to 10).sum That works fine, but I've been doing a lot of Groovy also recently and I automatically wrote: (1 to 10).sum() This second version gives me a compiler error in the IDE with the following message: not enough arguments for method sum: (implicit num: Numeric[B])B. Unspecified value parameter num. I see on the Scala API that there are two versions