Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pretty clean, I like the use of symbolic calculations here!

What I don't understand (likely because I don't know Python) is the difference between the following lines:

Wrong = lambda x: False
Right = lambda x: lambda: True

Why is Wrong only a single layer of lambda while Right has/is two?

(+1)

That was just to illustrate that computeds can return either a plain boolean, or another callable. Right is returning another lambda which itself returns True. So it would end up being called twice in the while loop to resolve the final value.