won't this make the whole process unnecessarily slower?
It doesn't seem like there's a factory it could use, but you could just subclass Ordering.
def by[A, B:Ordering](f:A=>B) = new Ordering {
def compare ...
Actually that really exists as Ordering#on. So, simply def by[A, B:Ordering](f:A=>B) = Ordering[B].on[A](f) should do it.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.