ru.fix.kbdd.map.MapDsl.kt Maven / Gradle / Ivy
package ru.fix.kbdd.map
class MapDsl {
companion object{
fun map(mapDsl: (MapDsl)->Unit): MutableMap{
val map = MapDsl()
mapDsl(map)
return map.map
}
}
val map = mutableMapOf()
operator fun String.rem(value: ValueType) {
map[this] = value
}
}