Page 1 of 1

help needed

PostPosted: Tue Apr 21, 2015 11:48 pm
by azoozbmw
actually I am new programmer in lisp I have question how can I Write a function lists all of the input VARIABLES

your help is appriciated :D

Re: help needed

PostPosted: Sat May 09, 2015 1:01 pm
by sylwester
This is an implementation of the standard procedure *list*. I believe it does what you want.

Code: Select all
(define (my-list . 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.