mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
19 lines
217 B
Kotlin
Vendored
19 lines
217 B
Kotlin
Vendored
class A : HashSet<Long>()
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.iterator()
|
|
|
|
a.add(0L)
|
|
a.remove(0L)
|
|
|
|
a.addAll(b)
|
|
a.removeAll(b)
|
|
a.retainAll(b)
|
|
a.clear()
|
|
|
|
return "OK"
|
|
}
|