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]:

Wolfram Research (2020), ReverseApplied, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseApplied.html.

Text

Wolfram Research (2020), ReverseApplied, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseApplied.html.

CMS

Wolfram Language. 2020. "ReverseApplied." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ReverseApplied.html.

APA

Wolfram Language. (2020). ReverseApplied. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReverseApplied.html

BibTeX

@misc{reference.wolfram_2024_reverseapplied, author="Wolfram Research", title="{ReverseApplied}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ReverseApplied.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_reverseapplied, organization={Wolfram Research}, title={ReverseApplied}, year={2020}, url={https://reference.wolfram.com/language/ref/ReverseApplied.html}, note=[Accessed: 21-November-2024 ]}