diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-11-11 16:23:19 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | aadcf8ad9a9b6ace9db2427bc8d2e732f30404fb (patch) | |
| tree | 24f4454b5d7c22a031b351499109e0e6443bf1c9 /alv | |
| parent | lib: add time/delay! (diff) | |
| download | alive-aadcf8ad9a9b6ace9db2427bc8d2e732f30404fb.tar.gz alive-aadcf8ad9a9b6ace9db2427bc8d2e732f30404fb.zip | |
pass input through (trace expr)
Diffstat (limited to 'alv')
| -rw-r--r-- | alv/builtins.moon | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alv/builtins.moon b/alv/builtins.moon index 78cbbbf..767202b 100644 --- a/alv/builtins.moon +++ b/alv/builtins.moon @@ -400,12 +400,14 @@ trace = Constant.meta prefix: Input.cold inputs[1] value: Input.hot inputs[2] + @out = inputs[2].result + tick: => L\print "trace #{@inputs.prefix!}: #{@inputs.value.result}" eval: (scope, tail) => L\trace "evaling #{@}" - assert #tail == 1, "'trace!' takes exactly one parameter" + assert #tail == 1, "'trace' takes exactly one parameter" tag = @tag\clone Tag.parse '-1' inner = Cell tag, { |
