JanetDocsPlaygroundI'm feeling luckyGitHub sign in
# Contrived examples returning the variadic arguments passed in. (defn example-function [& args] args) (defmacro example-macro [& args] ~(tuple ,;args)) (macex '(example-macro 1 2 3)) (assert (= (example-function 1 2 3) (example-macro 1 2 3))) (def args [1 2 3]) # `apply` is for functions, but there's always `eval`. (assert (= (apply example-function args) (eval ~(example-macro ,;args)))) # Same return for both. # => (1 2 3)