I have a function which takes an unlimited number of args such as (define (func . args)).
(define (func . args))
Say I have a list '(1 2 3), how do I unpack the elements into the function like (func 1 2 3)? Does Scheme have a primitive for this?
'(1 2 3)
(func 1 2 3)
You can use apply:
apply
(apply func '(1 2 3))