Instantiate a new empty IncrementMap from key and value types
Instantiate a new empty IncrementMap from key and value types
import org.isarnproject.collections.mixmaps.increment._ // map strings to integers, using default string ordering and default value monoid val map1 = IncrementMap.key[String].value[Int] // Use a custom ordering val ord: Ordering[String] = ... val map2 = IncrementMap.key(ord).value[Int] // A custom value monoid, defines what 'increment' means val mon: Monoid[Int] = ... val map2 = IncrementMap.key[String].value(mon)