From 5a30c4b213a302a8e1dbd5cc3651b02ae8abd97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20F=C3=A4rber?= <01mf02@gmail.com> Date: Wed, 25 Sep 2024 11:37:25 +0200 Subject: [PATCH] Implement `debug/1`. --- jaq-std/src/defs.jq | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jaq-std/src/defs.jq b/jaq-std/src/defs.jq index 9bb2f3fd4..e34bc2cf5 100644 --- a/jaq-std/src/defs.jq +++ b/jaq-std/src/defs.jq @@ -1,7 +1,9 @@ def empty: {}[] as $x | .; def null: [][0]; +def debug(msgs): ((msgs | debug) as $x | empty), .; def error(msgs): ((msgs | error) as $x | empty), .; + def halt: halt_error(5); # Booleans