Skip to content

Commit

Permalink
builtin.jq: omit note about performance of transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoppstein committed Jul 24, 2023
1 parent 08da3a9 commit a20c6d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/builtin.jq
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def combinations(n):
| combinations;
# transpose a possibly jagged matrix, quickly;
# rows are padded with nulls so the result is always rectangular.
# Using map(length) turns out to be faster than using max(stream)
def transpose: [range(0; map(length)|max // 0) as $i | [.[][$i]]];
def in(xs): . as $x | xs | has($x);
def inside(xs): . as $x | xs | contains($x);
Expand Down

0 comments on commit a20c6d5

Please sign in to comment.