Skip to main content
added 30 characters in body
Source Link

Wolfram Language (Mathematica), 2424 21 bytes

1-based indices, input is a list and a tuple of indices to reverse

SubsetMap[Reverse,#,#2]&Reverse~SubsetMap~##&

Try it online!Try it online!

-3 bytes thanks to att.

Wolfram Language (Mathematica), 24 bytes

1-based indices, input is a list and a tuple of indices to reverse

SubsetMap[Reverse,#,#2]&

Try it online!

Wolfram Language (Mathematica), 24 21 bytes

1-based indices, input is a list and a tuple of indices to reverse

Reverse~SubsetMap~##&

Try it online!

-3 bytes thanks to att.

Source Link

Wolfram Language (Mathematica), 24 bytes

1-based indices, input is a list and a tuple of indices to reverse

SubsetMap[Reverse,#,#2]&

Try it online!