Lesson 50 Kotlin Practice with Recursion

Hey guys Im doing the homework problem on lesson 50. I tried created a map in my first function like: var map = MutableMapOf<Any,Int>() but I get the following error:

BinaryTreeToMap.kt:4: error: Unresolved reference: MutableMapOf
var map = MutableMapOf<Any, Int>()

Nm It is because mutable should not be capitalized lol

1 Like