isPrefix

fun List<Int>.isPrefix(list: List<Int>): Boolean