Scala: How to define “generic” function parameters?
Haskell uses Hindley-Milner type inference algorithm whereas Scala, in order to support Object Oriented side of things, had to forgo using it for now. In order to write an add function for all applicable types easily, you will need to use Scala 2.8.0: Welcome to Scala version 2.8.0.r18189-b20090702020221 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15). … Read more