What is the way to call optional functions as arguments? #522
-
|
For example, in guile-scheme you can do something like this: |
Beta Was this translation helpful? Give feedback.
Answered by
mattwparas
Sep 17, 2025
Replies: 1 comment 1 reply
-
|
This form is supported on the normal define, so just drop the (define (what num #:optional (func list)) (func num))
(what 10) ;; => '(10) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ofeeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This form is supported on the normal define, so just drop the
*and you're good: