Closed itchyny closed 1 year ago
This PR fixes array indexing by array ([1,2,3,2,1] | .[[]] should emit []). This operation behaves the same as indices/1 function. I looked into the function implementation and refactored a bit.
[1,2,3,2,1] | .[[]]
[]
indices/1
Thanks for the PR and sorry for the late response. I'll take a look tomorrow, please give me a bit more time :pray:
I checked the jq behavior and you are totally right. Thank you for fixing this!
This PR fixes array indexing by array (
[1,2,3,2,1] | .[[]]
should emit[]
). This operation behaves the same asindices/1
function. I looked into the function implementation and refactored a bit.