JuliaServices / Match.jl

Advanced Pattern Matching for Julia
https://juliaservices.github.io/Match.jl/latest/
Other
240 stars 22 forks source link

Match dictionaries #82

Open gafter opened 1 year ago

gafter commented 1 year ago

Match dictionaries with a syntax something like

{ key => pattern, ... }

where key is a constant (e.g. 1 or "foo") or symbol (e.g. :x).

Every key must exist in the map, and its corresponding value must match the given pattern.