tweag / cooked-validators

MIT License
39 stars 11 forks source link

Factor out the "combining modifications" idiom #336

Closed Niols closed 1 year ago

Niols commented 1 year ago

Both the malformDatumTweak and the doubleSatAttack share a helper function, allCombinations, written twice in the same way independently. This suggests that there is an idiom behind for combining modification (of outputs in particular). We should factor it out of those tweaks/attacks and into common utilities.