Pustaka Taratsa
KOTLIN: Set

KOTLIN: Set

Penulis: Onno Widodo Purbo

Sumber: https://www.tutorialspoint.com/kotlin/kotlin_sets.htm Kotlin set is an unordered collection of items. A Kotlin set can be either mutable (mutableSetOf) or read-only (setOf). Kotlin mutable or immutable sets do not allow to have duplicate elements. Contents 1 Creating Kotlin Sets 1.1 Example 2 Loop through Kotlin Sets 3 Using Iterator 4 Using for loop 5 Using forEach 6 Size of Kotlin Set 7