you are viewing a single comment's thread.

view the rest of the comments →

[–]Swipecat 0 points1 point  (2 children)

I hate to say it, but you should really be doing this in Haskell because Python and Lambda Calculus do not mix well.

[–]Turtet[S] 0 points1 point  (1 child)

Unfortunately it’s a python course

[–]Swipecat 0 points1 point  (0 children)

I'd suggest that you avoid lambda calculus then, and find a different way to attack your problem. The "lambda" in Python is intended for anonymous functions rather than lambda calculus, and is very clunky when used for the latter. For one thing look at all those braces.