map

fun <T> map(raw: String, value: (String) -> T): Map<String, T>(source)

Parses key=value pairs separated by commas: a=1, b=2. Surrounding braces are accepted, and : works as a separator too. For TOML tables and YAML mappings, which sources flatten into name.key entries, the loader uses mapEntries instead.