flip

flip f takes its (first) two arguments in the reverse order of f.
flip f x y = f y x
flip . flip = id

Examples

>>> flip (++) "hello" "world"
"worldhello"
>>> let (.>) = flip (.) in (+1) .> show $ 5
"6"
flip f takes its (first) two arguments in the reverse order of f.
>>> flip (++) "hello" "world"
"worldhello"
Exchange the first and the second components of all triplets.
flip f takes its (first) two arguments in the reverse order of f.
flip f takes its (first) two arguments in the reverse order of f.
>>> flip (++) "hello" "world"
"worldhello"
flip f takes its (first) two arguments in the reverse order of f.
flip f x y = f y x
flip . flip = id

Examples

>>> flip (++) "hello" "world"
"worldhello"
>>> let (.>) = flip (.) in (+1) .> show $ 5
"6"
flip the order of the first two arguments of a function.
Analogue of flip
Strict variant of flip. Defined as:
flip f b a = f $! a $! b
Since version 0.11.0.0.
Make a Bifunctor flipping the arguments of a Bifunctor.
Convert a FunctorB into a FunctorT and vice-versa.
A nested parametric type represented as a rank-2 type
Function flip. Combinator C in https://en.wikipedia.org/wiki/B,_C,_K,_W_system.