Discussion of Scheme and Racket
-
azoozbmw
- Posts: 1
- Joined: Tue Apr 21, 2015 10:40 pm
Post
by azoozbmw » Tue Apr 21, 2015 11:48 pm
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

-
sylwester
- Posts: 133
- Joined: Mon Jul 11, 2011 2:53 pm
Post
by sylwester » Sat May 09, 2015 1:01 pm
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.
I'm the author of
two useless languages that uses
BF as target machine.
Currently I'm planning a Scheme compiler :p