We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_assign/2
$argument
1 parent 85caac4 commit 730c730Copy full SHA for 730c730
src/builtin.jq
@@ -10,7 +10,7 @@ def max_by(f): _max_by_impl(map([f]));
10
def min_by(f): _min_by_impl(map([f]));
11
def add: reduce .[] as $x (null; . + $x);
12
def del(f): delpaths([path(f)]);
13
-def _assign(paths; value): value as $v | reduce path(paths) as $p (.; setpath($p; $v));
+def _assign(paths; $value): reduce path(paths) as $p (.; setpath($p; $value));
14
def _modify(paths; update): reduce path(paths) as $p (.; label $out | (setpath($p; getpath($p) | update) | ., break $out), delpaths([$p]));
15
def map_values(f): .[] |= f;
16
0 commit comments