In he code below I get a compilation error unless I import Ordering.Implicits. Why is that import necessary? Is there a way around that? Am I doing something completely off-base?
Error:(15, 38) value < is not a member of type parameter A
case (ah :: as, bh :: _) if ah < bh => findOverlap(c, as, b)
private def foo[A : Ordering](c: mutable.Set[A], a: Seq[A], b: Seq[A]): mutable.Set[A] =
(a, b) match {
case (ah :: _, bh :: _) if ah == bh => c + ah
case (ah :: as, bh :: _) if ah < bh => foo(c, as, b)
case (_, _ :: bs) => foo(c, a, bs)
}