All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.ds.MapExt.kt Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package com.jtransc.ds

inline fun  MutableMap.getOrPut2(key: T1, generator: () -> T2): T2 {
	if (key !in this) this[key] = generator()
	return this[key]!!
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy