Closed maxitg closed 3 years ago
I fixed the memory leak, so it's ready for review now. I ended up using @taliesinb's suggestion about Data`UnorderedAssociation
from a previous PR after all. It turned out, not only it has a better API, but it is more reliable as well.
Changes
{a__, b__}
will now be matched multiple times even if the ordered sequence of tokens is the same (e.g., as{{a} -> {1}, {b} -> {2, 3}}
and{{a} -> {1, 2}, {b} -> {3}}
)."InstantiationIndex"
, which controls which of the instantiations will be used first. (There is still no customization of the ordering at the moment.)Examples
This change is