Lambda in parameters

Philippe Meunier meunier at ccs.neu.edu
Sat Dec 19 07:39:13 EST 2020


Abdur-Rahmaan Janhangeer wrote:
>The aim of car is to return 1
>but i don't understand how lambda achieves this

Cameron Simpson's explanation is very good.  See also the example reduction
here: https://en.wikipedia.org/wiki/Church_encoding#Church_pairs

>This problem was asked by Jane Street.

Jane Street is well known for its love of functional programming in general
and of OCaml in particular.  If you don't know OCaml yet, I highly
recommend it.  You can think of it as Python with (static) types.

Best,

Philippe




More information about the Python-list mailing list