ReverseApplied

ReverseApplied[f]

represents a form of f that takes arguments in reverse order so that ReverseApplied[f][x1,,xn] is equivalent to f[xn,,x1].

ReverseApplied[f,n]

represents a form of f that reverses the first n arguments before evaluation.

Details

Examples

open allclose all

Basic Examples  (2)

Reverse the order of arguments:

Use reversed numerical order:

Scope  (2)

Reverse all arguments of a function:

Reverse the first n arguments of a function:

Reverse the last n arguments of a function:

Applications  (1)

Use non-commutative products with the reversed convention:

Properties & Relations  (5)

ReverseApplied can be built as a combination of Reverse and Apply:

ReverseApplied[f][] returns f[]:

ReverseSort is equivalent to Sort with ordering function ReverseApplied[Order]:

RightComposition is equivalent to ReverseApplied[Composition]:

OperatorApplied[f] is equivalent to a combination of CurryApplied[2] and ReverseApplied[f]:

Introduced in 2020
 (12.1)