Printing the result

Finally, we print the result by iterating the result map:

    // Prints the result    result.forEach {      println("${it.key} -> ${it.value}")    }

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.