otherwise you can merge that into one function as:...
# random
a
otherwise you can merge that into one function as:
Copy code
public fun <T> Sequence<T>.batch(n: Int, forEachDo: (List<T>)->Unit) {
        BatchingSequence(this, n).forEach { group -> forEachDo(group) }
    }