jaq icon indicating copy to clipboard operation
jaq copied to clipboard

Prevent stack overflow in `flatten`

Open 01mf02 opened this issue 3 years ago • 0 comments

The filter

jaq -n 'def trees: recurse([., .]); 0 | nth(16; trees) | flatten | length'

gives a stack overflow. Smaller values for nth (i.e. 14) do not produce an overflow. It might help to debug this with cargo flamegraph to see what causes the recursive calls.

01mf02 avatar Apr 26 '22 07:04 01mf02