combinations

fun <V> combinations(paths: List<List<V>>): List<List<V>>(source)

Given a list of potential values at each index in a list, returns all possible combinations of those values.