Define map_values
This commit is contained in:
1 parent
54a0470c42
commit
84d3203dd1
2 files changed
+11
-3
No files matched your search
@@ -950,6 +950,7 @@ static block bind_bytecoded_builtins(block b) {
|
||||
static const char* const jq_builtins[] = {
|
||||
"def break: error(\"break\");",
|
||||
"def map(f): [.[] | f];",
|
||||
"def map_values(f): .[] |= f;",
|
||||
"def select(f): if f then . else empty end;",
|
||||
"def sort_by(f): _sort_by_impl(map([f]));",
|
||||
"def group_by(f): _group_by_impl(map([f]));",
|
||||
|
||||
Reference in new issue
Block a user