jaq
jaq copied to clipboard
Prevent stack overflow in `flatten`
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.