Int => Intdroppers up Function1[Int, Int]. Both Map[K, V]and List[A]are expanding indication Function1[A, B]as part of the hierarchy of their collection and, therefore, the compiler resolves these types of as a concrete realization.
For example, Map:
trait MapLike[K, +V, +This <: MapLike[K, V, This] with Map[K, V]] extends PartialFunction[K, V]
Where PartialFunction[K, V]goes onFunction1[K, V]
source
share