Map with buildMap

Report a typo

Create a map with a builder function. Add Apple: Green, Banana: Yellow, and Strawberry: Red pairs to it.

Don't change the map's name!

Write a program in Kotlin
val map = buildMap<String, String> {

}
___

Create a free account to access the full topic