permutations

fun <T> permutations(list: List<T>, r: Int): Iterable<List<T>>