Scala Wizards, what do I need to do to make function g implicitly call fromInt(2) ? import scala.math.Numeric.Implicits.infixNumericOps def f[T: Numeric](x: T): T = { x+x } def g[T: Numeric](x: T): T = { 2*x }
-
-
I spent much of today frustrated by set in the stl and its 5 forms and behaviour with respect to comparisons and ordering and more fun. Two hours wasted. I'd have released the feature two weeks ago if Haskell



Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.