Tag: Scala

0

Right associativity in Scala

We define two methods here, ++ and ++: 1234567891011class Foo { def ++(n: Int): Unit = println(n + 1) def ++:(n: Int): Unit = println(n + 1)}object ValFunctionTest { def main(args: A