withState

inline fun <T> Long.withState(block: (head: Int, tail: Int) -> T): T(source)