com.github.gchudnov.bscript.builder.util
Type members
Classlikes
Wrapper to allow the same case class to be put twice in a Map
Wrapper to allow the same case class to be put twice in a Map
case class A(x: Int)
val m0 = Map.empty[EqWrap[A], String]
val m1 = m0 + (A(1) -> "10")
val m2 = m1 + (A(1) -> "20")
// at the end there should be several elements in Map, since we have two separate A instances
- Companion:
- object