Skip to content

PermutationReplace

PermutationReplace(list-or-integer, Cycles({{...},{...}, ...}))

replace the arguments of the first expression with the corresponding element from the Cycles({{...},{...}, ...}) expression.

See

Examples

>> PermutationReplace({1, b, 3, 4, 5}, Cycles({{1, 5,8}, {2, 7}}))
{5,b,3,4,8}

Cycles, FindPermutation, PermutationCycles, PermutationCyclesQ, PermutationList, PermutationListQ, Permutations, Permute

Implementation status

  • ✅ - full supported

Github