3 ms·
I wrote a Python module called PyPatt that implements Pythonic Pattern Matching as you'd find in functional languages. There's both a function-based and macro-b
by gjenks 11y ago
I wrote a Python module called PyPatt that implements Pythonic Pattern Matching as you'd find in functional languages. There's both a function-based and macro-based version. The macro version is deprecated but was used for a while.
Docs: http://www.grantjenks.com/docs/pypatt-python-pattern-matching/macro.html http://www.grantjenks.com/docs/pypatt-python-pattern-matchin...
Source: https://github.com/grantjenks/pypatt_python_pattern_matching/blob/master/pypatt/macro.py https://github.com/grantjenks/pypatt_python_pattern_matching...