File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2984,6 +2984,17 @@ sections:
2984
2984
`["DEBUG:", <input-value>]` and prints that and a newline on
2985
2985
stderr, compactly. This may change in the future.
2986
2986
2987
+ - title : " `debug(msg)`"
2988
+ body : |
2989
+
2990
+ Calls `debug/0` to print the debug `msg` to stderr, but this
2991
+ version sends stdin to stdout without consuming it.
2992
+
2993
+ examples :
2994
+ - program : ' debug("here1") | . + 1'
2995
+ input : ' 1'
2996
+ output : ['2']
2997
+
2987
2998
- title : " `stderr`"
2988
2999
body : |
2989
3000
Original file line number Diff line number Diff line change 1
1
def halt_error : halt_error (5 );
2
2
def error (msg ): msg | error ;
3
+ def debug (msg ): . as $dot | msg | debug | $dot ;
3
4
def map (f ): [. [] | f ];
4
5
def select (f ): if f then . else empty end ;
5
6
def sort_by (f ): _sort_by_impl (map ([f ]));
You can’t perform that action at this time.
0 commit comments