I am trying to figure out how to set default parameters or advanced parameters in a circuit.
I tried (define (func a #!optional b) (+ a b)), but I can not find a way to check if the parameter is the default bvalue, because just calling (func 1 2)will give an error:
Error: +: number required, but got #("halt") [func, +]
I also tried (define (func a [b 0]) (+ a b)), but I get the following error:
Error: execute: unbound symbol: "b" [func]
If this helps, I use BiwaScheme as used in repl.it
source
share