Skip to content

Commit

Permalink
Implement debug/1.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Sep 25, 2024
1 parent 8386568 commit 5a30c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jaq-std/src/defs.jq
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5a30c4b

Please sign in to comment.