(define test (lambda args
(if (= (length args) 1) (display (car args))
(begin (display (car args))
(test (cdr args))))))
I was looking for it on the net and didnt find the answer, I was able to get a variable number of arguments to my func, but how do i pass them not as a single list to the next iteration?
To be more clearer, if i call :
(test (list 1 1) (list 2 2) (list 3 3))
i was exepcting to get :
(1 1) (2 2) (3 3)
but i get :
(1 1) ((2 2) (3 3))
Thanks in advance!