pxeger / whython

Fork of Python with some terrible custom features hacked in
https://www.pxeger.com/2021-09-19-hacking-on-cpython/
Other
16 stars 3 forks source link

Replace map/reduce with callable iterables #6

Open mvirts opened 2 years ago

mvirts commented 2 years ago

Something along the lines of:

print(-1,2,-3,4,-5)

[1,2,3,4,5]

print([-1,2,-3,4,-5](lambda a,b: aa+bb))

1373609

cgccuser commented 2 years ago

This can almost already be done with monkey patching, right?