Open andrjohns opened 1 year ago
I think this is definitely something we want to work on after Tuples. Some of this was part of #742 if I understand correctly, so reviving or reworking that effort would be a good start down the line
See also: https://github.com/stan-dev/design-docs/blob/master/designs/0004-closures-fun-types.md
A bit of a nice-to-have for simplifying more complex models would be the ability to pass a functions as an argument to another function.
With suggested signatures like:
And usage:
And if it's not too tricky an additional request, being able to declare/assign functions would be great as well:
Note that the above is a highly contrived and simplified example