diff options
author | pkoppstein <pkoppstein@gmail.com> | 2023-07-05 22:24:33 -0400 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-05 23:48:31 -0500 |
commit | 37225a9a0731e2a41183fab2b927671cbcdb6629 (patch) | |
tree | c79c3ed40b711a5f8a327aaeba83184d1bb8f61e | |
parent | 416e8ada7d101cbb6137ed1e7b0753774a8c2e81 (diff) |
builtin.jq: def pick(pathexps):
Change the name of the formal parameter.
-rw-r--r-- | src/builtin.jq | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtin.jq b/src/builtin.jq index 0d42efd9..483ddcc4 100644 --- a/src/builtin.jq +++ b/src/builtin.jq @@ -260,10 +260,10 @@ def walk(f): else f end; -# stream should be a stream of dot-paths -def pick(stream): +# pathexps could be a stream of dot-paths +def pick(pathexps): . as $in - | reduce path(stream) as $a (null; + | reduce path(pathexps) as $a (null; setpath($a; $in|getpath($a)) ); # SQL-ish operators here: |