Permutations: Difference between revisions
Content added Content deleted
m (→Functional composition: updated comment line (type signature)) |
(→Iteration: another typo) |
||
Line 2,502: | Line 2,502: | ||
f = perm(a); |
f = perm(a); |
||
for (d = 0; d < f.length; d++) b.push([e].concat(f[d])); |
for (d = 0; d < f.length; d++) b.push([e].concat(f[d])); |
||
a.splice(c, 0, e) |
a.splice(c, 0, e[0]) |
||
} return b |
} return b |
||
} |
} |