This is an implementation of the standard procedure *list*. I believe it does what you want.
- Code: Select all
(define (my-list . args)
args)
(my-list 1 2 3 4) ; ==> (1 2 3 4)
Notice that you have posted this in the Scheme section so this is a Scheme implementation. Scheme uses the word procedure instead of function.