adamd
fun <T> List<T>.headAndTail(headLength: Int) = this.take(headLength) to this.takeLast(size - headLength)