📅  最后修改于: 2022-03-11 14:53:33.740000             🧑  作者: Mango
val childNumbers = sequence {
yield(1)
print("AAA")
yieldAll(listOf(2, 3))
}
childNumbers.forEach { print(it) } // 1AAA23
val nums = childNumbers.joinToString() // AAA
print(nums) // 1, 2, 3