Implement "legacy" REPL wrappers on top of the "new" scripting infrastructure
This commit is contained in:
@@ -75,6 +75,10 @@ open class PropertiesCollection(private val properties: Map<Key<*>, Any?> = empt
|
||||
data[this] = v
|
||||
}
|
||||
|
||||
fun <T> PropertiesCollection.Key<T>.put(v: T) {
|
||||
data[this] = v
|
||||
}
|
||||
|
||||
// generic for lists
|
||||
|
||||
operator fun <T> PropertiesCollection.Key<in List<T>>.invoke(vararg vals: T) {
|
||||
|
||||
Reference in New Issue
Block a user