Skip to content

Instantly share code, notes, and snippets.

@lyxal
Created June 24, 2021 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lyxal/1151ae11b96e0f37b19d0125a4ff640a to your computer and use it in GitHub Desktop.
Save lyxal/1151ae11b96e0f37b19d0125a4ff640a to your computer and use it in GitHub Desktop.
+¿
[17, (¿, [0, +])]
Turn that into
lambda x,y,z: if z: x + y
+¿¿
[17, (¿, [17, (¿, [0, +])])]
Turn that into
lambda x:
if x:
lambda y,z,a: if a: y+z
@lyxal
Copy link
Author

lyxal commented Jun 24, 2021

No wait, the first one should be

if a: lambda x,y: x+y

@lyxal
Copy link
Author

lyxal commented Jun 24, 2021

Meaning the second should be

if a:
 lambda x*: if x.pop(): lambda Y,z: Y+z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment