so <@U74MT5279>, the only solution I’ve really bee...
# getting-started
t
so @Fuyang, the only solution I’ve really been able to get to work is:
Copy code
it("kotlin slack") {
    val dictionary = mutableMapOf("fruits" to mutableSetOf("apple", "banana", "orange", "cherry"))

    fun putValueInAppropriateCategory(value: String, key: String, map: MutableMap<String, MutableSet<String>>) {
        if (map.contains(key)) {
            map[key]?.plusAssign(value)
        } else {
            map[key] = mutableSetOf(value)
        }
    }

    putValueInAppropriateCategory("strawberry", "fruits", dictionary)
    putValueInAppropriateCategory("carrot", "vegetables", dictionary)

    dictionary["fruits"].should.contain("strawberry")
    dictionary.containsKey("vegetables").should.be.`true`
    dictionary["vegetables"].should.contain("carrot")
}