mabuchilab / QNET

Computer algebra package for quantum mechanics and photonic quantum networks
https://qnet.readthedocs.io/
MIT License
71 stars 23 forks source link

Add a find_all routine #46

Closed goerz closed 7 years ago

goerz commented 7 years ago

Add a routine find_all(pattern, expr) that returns a list of MatchDict instances for each sub-expression of expr that matches pattern

goerz commented 7 years ago

Better to have a findall method to Pattern that returns a list of matched expression (not MatchDict instances), akin to re.findall