kotlin.collections.toProperties
toProperties
inline fun Map<String, String>.toProperties(): Properties
Platform and version requirements: JVM
Converts this Map to a Properties object.
import kotlin.test.*
import java.util.*
import kotlin.comparisons.*
fun main(args: Array<String>) {
//sampleStart
val map = mapOf("x" to "value A", "y" to "value B")
val props = map.toProperties()
println(props.getProperty("x")