Refactor assignment.

New version is much more elegant and probably slower. Uses
library functions implemented in jq rather than dedicated opcodes.
This commit is contained in:
Stephen Dolan committed 2012-12-29 16:43:36 +00:00
1 parent 465a4ec565
commit d5fdf70434
7 files changed
+19 -53

No files matched your search

+4
View File
@@ -411,6 +411,10 @@ null
[-1,1,3]
[0.5, 1.5, 2.5]
.foo += .foo
{"foo":2}
{"foo":4}
.[0].a |= {"old":., "new":(.+1)}
[{"a":1,"b":2}]
[{"a":{"old":1, "new":2},"b":2}]