:: (a -> b -> c) -> (b -> a -> c) -package:servant-client-core

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"
Backwards function application. This is an infix synonym for flip
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"
Strict variant of flip. Defined as:
flip f b a = f $! a $! b
Since version 0.11.0.0.
Takes two lists and combines them with a custom combining function