rose-lang / rose

Composable autodiff for the interactive web.
https://rosejs.dev
MIT License
22 stars 0 forks source link

Interpret functions with parameters #80

Closed samestep closed 1 year ago

samestep commented 1 year ago

Resolves #79.

I changed several of the tests to use this; hopefully I didn't reduce test coverage, since for instance, the logic for dealing with literal arrays in function bodies vs as arguments is completely different. The "index array" test covers some of this, but maybe there should also be another test to show that nested arrays work like in the "matrix multiplication" example.