We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following is much faster (3x in some instances) than the current def in builtins.jq
def
def transpose: [range(0; map( length ) | max) as $i | [.[][$i]]];
Even better would be to add stream-oriented versions of min/0 and max/0:
def min(s): reduce s as $x (first(s); if $x < . then $x else . end); def max(s): reduce s as $x (first(s); if $x > . then $x else . end);
and then:
def transpose: [range(0; max(.[]|length)) as $i | [.[][$i]]];
The text was updated successfully, but these errors were encountered:
Resolved by #2679
Sorry, something went wrong.
No branches or pull requests
The following is much faster (3x in some instances) than the current
def
in builtins.jqEven better would be to add stream-oriented versions of min/0 and max/0:
and then:
The text was updated successfully, but these errors were encountered: