Some hacky API tweaks to conform with new stdlib APIs.

This commit is contained in:
Pavel V. Talanov
2012-03-30 16:34:15 +04:00
parent 428c517ee6
commit d378e4bd06
4 changed files with 68 additions and 64 deletions
+5
View File
@@ -0,0 +1,5 @@
package kotlin
import java.util.Map as JMap
/** Provides [] access to maps */
fun <K, V> JMap<K, V>.set(key : K, value : V) = this.put(key, value)