Om
rearrange

Rearranges Operands. More...

Input

{new arrangement} {current arrangement} ...

where remaining Operands are pulled and mapped to Operators in:

{current arrangement}

to construct a scope that is used to evaluate, then dequote:

{new arrangement}

Output
The dequoted evaluation of:

{new arrangement}

using the scope constructed by filling into:

{current arrangement}

Examples
  • rearrange{C B A}{A B C}{1}{2}{3}

    {3}{2}{1}

Implementation
Om::Language::Operation::RearrangeOperation