builtin.jq: def pick(pathexps):

Change the name of the formal parameter.
This commit is contained in:
pkoppstein authored and Nico Williams committed 2023-07-05 23:48:31 -05:00
1 parent 416e8ada7d
commit 37225a9a07
1 file changed
+3 -3
+3 -3
View File
@@ -260,10 +260,10 @@ def walk(f):
else f else f
end; end;
# stream should be a stream of dot-paths # pathexps could be a stream of dot-paths
def pick(stream): def pick(pathexps):
. as $in . as $in
| reduce path(stream) as $a (null; | reduce path(pathexps) as $a (null;
setpath($a; $in|getpath($a)) ); setpath($a; $in|getpath($a)) );
# SQL-ish operators here: # SQL-ish operators here: