byte vec & bit vec (bit set)

This commit is contained in:
alexander.nutz
2024-03-25 10:45:04 +01:00
parent 6e9300fac6
commit a2fcfd9ef4
8 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package blitz.collections
fun <T, R> Iterator<T>.mapModifier(fn: (T) -> R): Iterator<R> =
object : Iterator<R> {
override fun next(): R =
fn(this@mapModifier.next())
override fun hasNext(): Boolean =
this@mapModifier.hasNext()
}