Many functions can be reduced to point free form – but is this true for all of them?
E.g. I don’t see how it could be done for:
apply2 f x = f x x
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Logical combinators (i.e. the S, K, I combinators) are essentially point-free forms of functions, and the lambda-calculus is equivalent to combinatory logic, so I think this suggests that the answer is yes.
The combinator for yourapply2function is (if I am reading things correctly):also known as the “Lark”, from Raymond Smullyan’s Combinatory Birds page.
(edit-in:) Turns out1 the above is equivalent to
\f x -> f (x x). According to the comments by “@gereeter” here below it is indeed known as the “Lark”, whereas the function\f x -> f x xrequested in the question is the “Warbler” from the aforementioned book (a.k.a. the “W” combinator),W f x = S(S(K(S(KS)K))S)(KK)SI f x = S(S(KB)S)(KK)SI f x = CSI f x = SfIx = f x x.1 here: