permutations

fun <E> List<E>.permutations(k: Int = size): Sequence<List<E>>