feat: Allow nonrecursive whole-function dependencies (#2)
And implement negate on numbers, and use dependencies to define subtract. Co-authored-by: Glen Whitney <glen@studioinfinity.org> Reviewed-on: #2
This commit is contained in:
parent
f5e2e09aa2
commit
b59a8c2ca9
6 changed files with 43 additions and 4 deletions
3
generic/subtract.mjs
Normal file
3
generic/subtract.mjs
Normal file
|
@ -0,0 +1,3 @@
|
|||
export const subtract = {
|
||||
'any,any': [['add', 'negate'], ref => (x,y) => ref.add(x, ref.negate(y))]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue