From 37225a9a0731e2a41183fab2b927671cbcdb6629 Mon Sep 17 00:00:00 2001 From: pkoppstein Date: Wed, 5 Jul 2023 22:24:33 -0400 Subject: builtin.jq: def pick(pathexps): Change the name of the formal parameter. --- src/builtin.jq | 6 +++--- 1 file 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: -- cgit v1.2.3