help needed

Discussion of Scheme and Racket
Post Reply
azoozbmw
Posts: 1
Joined: Tue Apr 21, 2015 10:40 pm

help needed

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 :D

sylwester
Posts: 133
Joined: Mon Jul 11, 2011 2:53 pm

Re: help needed

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

Post Reply