Update API usage
This commit is contained in:
11
app/src/main/java/io/nekohasekai/sfa/ktx/Wrappers.kt
Normal file
11
app/src/main/java/io/nekohasekai/sfa/ktx/Wrappers.kt
Normal 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())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user