zed icon indicating copy to clipboard operation
zed copied to clipboard

Stateful expressions in user defined functions

Open mattnibs opened this issue 1 year ago • 0 comments

Aggregations are supposed to carry separate state for each textual invocation but this rule breaks apart when using aggregation expressions in user defined functions. Observe:

func c(): ( count() )
yield [c(), c(), c()]

currently returns

[1,2,3]

when it should be returning [1,1,1].

mattnibs avatar Mar 27 '24 17:03 mattnibs