A Python fork that adds λ
as an additional keyword that works in the exact same way lambda
does.
Because reading and typing lambda
is just too much work.
GitHub doesn't like non-ASCII names :(
Before compiling, you can run:
make regen-keyword && make regen-pegen
to ensure Lib/keywords.py
and Parser/parser.c
are properly generated.
Then you can compile as usual.
Please refer to the cpython repo for any additional details.
Now you can write things like:
f = λ a: a('hello') f(print)
In this repo there's a build file to use with pyenv.
Copy the build version with:
cp ./λython ${PYENV_ROOT}/plugins/python-build/share/python-build pyenv install λython
Then I'm confident you'll want to use this version as your global version:
pyenv global λython