diff options
author | Muh Muhten <muh.muhten@gmail.com> | 2019-02-25 23:53:21 -0500 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2019-02-26 11:05:25 -0600 |
commit | 6a0bdf6063407c234292beffd000667acc2ef46b (patch) | |
tree | 6f4c45202558577b2268e7a7e3bd9782bab5e2cc /src | |
parent | 36c250a03dfde80d6667c1c578e7e488b8d9caab (diff) |
Remove scalars_or_empty
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin.jq | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/builtin.jq b/src/builtin.jq index d3a4bb16..23c5a564 100644 --- a/src/builtin.jq +++ b/src/builtin.jq @@ -58,7 +58,6 @@ def strings: select(type == "string"); def nulls: select(type == "null"); def values: select(. != null); def scalars: select(. == null or . == true or . == false or type == "number" or type == "string"); -def scalars_or_empty: select(. == null or . == true or . == false or type == "number" or type == "string" or ((type=="array" or type=="object") and length==0)); def leaf_paths: paths(scalars); def join($x): reduce .[] as $i (null; (if .==null then "" else .+$x end) + |