This an ordered version of the original gist located at https://gist.github.com/marcanuy/06cb00bc36033cd12875
- -aa
- aa-
- -ab
This an ordered version of the original gist located at https://gist.github.com/marcanuy/06cb00bc36033cd12875
trait Factory[T] { | |
def create: T | |
} | |
object Factory { | |
implicit def stringFactory: Factory[String] = new Factory[String] { | |
def create = "foo" | |
} | |
implicit def intFactory: Factory[Int] = new Factory[Int] { |