Lambda Calculus – What is the Name of ?x.?f.fx (Reverse Apply) in Programming?

functional programminghaskelllambda

What is the name of λx.λf.fx in lambda calculus?

Does the corresponding function have a standard name in functional programming languages, like Haskell?

In object oriented programming, is there a usual name for a method foo which takes a function as an argument, such that x.foo(f) returns f(x)?

Best Answer

In Haskell, \x.\f.f x is flip ($) which as $ is read as apply, I would read as reverse apply.

Roughly based on https://stackoverflow.com/questions/4090168/is-there-an-inverse-of-the-haskell-operator