summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/generic/MapFactory.scala
blob: d7413b8928ce9a2ba56694f3d5fd5caeaf8ee7a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
package scalax.collection.generic

trait MapFactory[CC[A, B] <: MapTemplate[A, B, CC]] {

  def empty[A, B]: CC[A, B]

  def apply[A, B](elems: (A, B)*): CC[A, B] = empty[A, B] ++ elems.asInstanceOf[Iterable[(A, B)]] // !@!

}