HighDiceRoller / icepool

Python dice probability package.
MIT License
48 stars 5 forks source link

`MultisetExpression` rework, again #203

Open HighDiceRoller opened 2 months ago

HighDiceRoller commented 2 months ago

Basically the idea is that expressions outside of multiset_function would attach to generators, and expressions inside would attach to evaluators. This is mostly driven by cache reusability.

Here the "cut point" for unbinding would be at the first non-fully-bound expression node, rather than immediately at the generator.

HighDiceRoller commented 1 month ago

This could turn into a more comprehensive rework of MultisetExpression. Issues to look at: