Thanks so much for this amazing lib! For .aggregate, the docs mention that:
Just like regular user-defined functions, user-defined aggregates can accept multiple arguments
But it doesn't seem to specify/show an example of how additional arguments can be included. My assumption is that they go after the first two parameters in the step function, e.g.:
Your assumption is correct. The first parameter of step() is always the current aggregate value, and all of the remaining parameters of step() are the arguments passed to your user-defined aggregate function.
Thanks so much for this amazing lib! For
.aggregate
, the docs mention that:But it doesn't seem to specify/show an example of how additional arguments can be included. My assumption is that they go after the first two parameters in the step function, e.g.:
But I'd appreciation confirmation on that (or clarification if I'm confused and it actually works differently)