import kotlin.test.* import kotlin.comparisons.* fun Iterable.toIterable(): Iterable = Iterable { this.iterator() } fun box() { assertFalse(hashSetOf().contains(12)) assertTrue(listOf(15, 19, 20).contains(15)) assertTrue(hashSetOf(45, 14, 13).toIterable().contains(14)) }