Define map_values

This commit is contained in:
Santiago Lapresta committed 2014-12-22 23:05:35 +01:00
1 parent 54a0470c42
commit 84d3203dd1
2 files changed
+11 -3

No files matched your search

+1
View File
@@ -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]));",