3 ms·
A quick comparison of some Python implementations I found via quick Googling: https://gist.github.com/andybak/45e3155420d18420a34a https://gist.github.com/andy
by andybak 12y ago
A quick comparison of some Python implementations I found via quick Googling:
https://gist.github.com/andybak/45e3155420d18420a34a https://gist.github.com/andybak/45e3155420d18420a34a
- unignorant 12y agoNice, that's a clever use of decorators. A bit annoying that you need repeated "defs", though. Here's another approach based on Macropy (basically, macros for Python): https://github.com/lihaoyi/macropy#pattern-matching https://github.com/lihaoyi/macropy#pattern-matching.