Add a Boolean "not" operator.
Not wholly convinced this is a good idea, maybe "not" should be a builtin function instead? 'not (.a == .b)' vs. '.a == .b | not'
This commit is contained in:
1 parent
6e6ea50763
commit
da5d653de8
5 files changed
+16
-1
No files matched your search
@@ -260,3 +260,7 @@ def inc(x): x |= .+1; inc(.[].a)
|
||||
[false,true]
|
||||
[false,true]
|
||||
[false,false]
|
||||
|
||||
[.[] | not .]
|
||||
[1,0,false,null,true,"hello"]
|
||||
[false,false,true,true,false,false]
|
||||
Reference in new issue
Block a user