Kotlin - Collections Fundamentals
You want to create a mutable set of strings and add elements conditionally. Which Kotlin code correctly does this?
val fruits = mutableSetOf() if (true) fruits.add("apple") if (false) fruits.add("banana") println(fruits)
