Caculation on Kotlin
I’m doing Kotlin training exercises. Currently I play with ‘sets’ and do some calculation to return percentages. I do not understand why formula 1 returns a correct result, and not formula 2:
Why could I allow a duplicate on Kotlin’s sets?
It is known that the set in Kotlin prohibits the content of duplicates. But I was able to create such a set:
Kotlin Sets. Why could I allow a duplicate on kotlin’s sets?
It is known that the set in kotlin prohibits the content of duplicates. But I was able to create such a set: