Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Neil Gall
Added: Feb 22, 2020 10:20 AM
Views: 130
Tags: no tags
  1. fun keyValues(input: String): Map<String, String> =
  2.     input.split("\n").map { line ->
  3.         val parts = line.split("=")
  4.         parts[0] to parts[1]
  5.     }.toMap()
  6.