[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Lambda expression appearing in a function call

gengyangcai

7/9/2015 3:07:00 PM

Ok, I got this to work : a lambda expression appearing in a function call :

CL-USER 2 : 1 > ((lambda (x) (* x 2)) 3)
6

I know its not as big a deal as creating the theory of relativity, but I got something to work in Lisp

CAI GENGYANG
2 Answers

Pascal J. Bourguignon

7/9/2015 3:38:00 PM

0

CAI GENGYANG <gengyangcai@gmail.com> writes:

> Ok, I got this to work : a lambda expression appearing in a function call :
>
> CL-USER 2 : 1 > ((lambda (x) (* x 2)) 3)
> 6
>
> I know its not as big a deal as creating the theory of relativity, but I got something to work in Lisp

Congratulations.


That said, while you're being pampered by Lispworks, write down on your
to do list to learn some about unix. You can hardly call yourself a
programmer (even amateur), if you don't know how to deal with a CLI and
do some basic system administration tasks.


--
__Pascal Bourguignon__ http://www.informat...
â??The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.� -- Carl Bass CEO Autodesk

William James

7/9/2015 3:44:00 PM

0

CAI GENGYANG wrote:

> Ok, I got this to work : a lambda expression appearing in a function call :
>
> CL-USER 2 : 1 > ((lambda (x) (* x 2)) 3)
> 6
>

Gauche Scheme:

gosh> ((cut * <> 2) 3)
6
gosh> ((pa$ * 2) 3)
6
gosh> ((^x (* x 2)) 3)
6


--
The Ortagard school in Rosengard, an area of Malmo with close to 100% Muslim
immigrants, is burning yet again. Several police patrols are called out. But
Prime Minister Persson has already been escorted by special security police
into his bulletproof Volvo....
fjordman.blogspot.ca/2005/05/is-swedish-democracy-collapsing.html