python-pattern-matching icon indicating copy to clipboard operation
python-pattern-matching copied to clipboard

Python pattern matching like functional languages.

Results 12 python-pattern-matching issues
Sort by recently updated
recently updated
newest added

An integration with Z3 seems possible and useful. Z3 knows nothing about Python so I think the trick is to encode Python’s object model in Z3 code. For example, when...

Idea: add dunder match example for hi/lo checking. Could call RangeMatch or Ranger or something.

no doc available currently

Example: https://xmonader.github.io/prolog/2018/12/21/solving-murder-prolog.html

```python """Satisfiability and Propositional Logic Consider the following constraints: – Alice can only meet either on Monday, Wednesday or Thursday – Bob cannot meet on Wednesday – Carol cannot meet...

I'm not sure what use these have but their neat. Add Case Study: Generic Object Regular Expressions.

Create Symbol Expressions using namedtuples and write optimizer rules using patternmatching. Might be a good demo for the landing page -- I recall lots of complex clauses with patternmatching.

Add Case Study: JSON Schema Validation Remember to link to fast JSON schema validation library.

See pampy: https://github.com/santinic/pampy/ TODO: Add comparison.

Good article by Eli at https://eli.thegreenplace.net/2018/unification/ Should compare functional solution.