I noticed that the functions above, and some others, are included by default in the global scope.
What Scala does is that these types would have to be prefixed explicitly. For example:
val m = Map.empty[String, String] val s = Set(1, 2, 3, 4)
and so on.
Why didn’t Kotin adapt a similar approach? Something like
val s = Set.of(1, 2, 3)
val s = setOf(1, 2, 3)