diff options
author | Nicolas Williams <nico@cryptonector.com> | 2014-07-07 18:48:13 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-07-07 19:33:17 -0500 |
commit | 539dccae904cebb575de46e7640739e90ab49404 (patch) | |
tree | 7ea2b1994fe42f280be06717aefd19264ebcde72 /builtin.c | |
parent | 6458910ba3088ba653e368f20505e8e78657257b (diff) |
Add `break` builtin for `foreach`
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -902,6 +902,7 @@ static block bind_bytecoded_builtins(block b) { #define LIBM_DD(name) "def " #name ": _" #name ";", static const char* const jq_builtins[] = { + "def break: error(\"break\");", "def map(f): [.[] | f];", "def select(f): if f then . else empty end;", "def sort(f): _sort_by_impl(map([f]));", |