feat: Allow nonrecursive whole-function dependencies and use to subtract

This commit is contained in:
Glen Whitney 2022-07-18 20:04:27 -07:00
parent a22add9434
commit b16af5cd71
4 changed files with 32 additions and 2 deletions

3
generic/subtract.mjs Normal file
View file

@ -0,0 +1,3 @@
export const subtract = {
'any,any': [['add', 'negate'], ref => (x,y) => ref.add(x, ref.negate(y))]
}