breeze.collection.mutable.AutoUpdater.scala Maven / Gradle / Ivy
package breeze.collection.mutable
import scala.collection.mutable._
/**
* AutoUpdater wraps a Map such that any call to apply updates the map with an instance of the default value
* @author dlwh
*/
class AutoUpdater[M,K,V](val theMap: M, default: =>V)(implicit ev: M<: