help needed

Discussion of Scheme and Racket

help needed

Postby 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
azoozbmw
 
Posts: 1
Joined: Tue Apr 21, 2015 10:40 pm

Re: help needed

Postby 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
sylwester
 
Posts: 120
Joined: Mon Jul 11, 2011 2:53 pm


Return to Scheme

Who is online

Users browsing this forum: No registered users and 2 guests

cron