Added join function
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
1 parent
6856ab8a69
commit
01f676041d
2 files changed
+15
No files matched your search
@@ -703,6 +703,7 @@ static const char* const jq_builtins[] = {
|
||||
"def nulls: select(type == \"null\");",
|
||||
"def values: arrays, objects, booleans, numbers, strings;",
|
||||
"def scalars: select(. == null or . == true or . == false or type == \"number\" or type == \"string\");",
|
||||
"def join(x): reduce .[] as $i (\"\"; . + (if . == \"\" then $i else x + $i end));",
|
||||
};
|
||||
#undef LIBM_DD
|
||||
|
||||
|
||||
Reference in new issue
Block a user