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
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: