Update API usage

This commit is contained in:
世界
2023-08-24 23:25:35 +08:00
parent 1d578acb74
commit 065c62118e
4 changed files with 95 additions and 35 deletions

View File

@@ -0,0 +1,11 @@
package io.nekohasekai.sfa.ktx
import io.nekohasekai.libbox.StringIterator
fun StringIterator.toList(): List<String> {
return mutableListOf<String>().apply {
while (hasNext()) {
add(next())
}
}
}