Re: LISP code example matching an abstract construct
- From: Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 23:33:41 +0200
"Juan R." <juanrgonzaleza@xxxxxxxxxxxxxxxxxxxx> writes:
Sorry if this question sound a bit strange or off-topic.
I use notation (operator argument) --> result
e.g. (SQR 2) --> 1.4142...
I would know if anyone used both next -with A and B generic simbols-
(A B) --> C
(B A) --> D
in a LISP-Scheme program.
Of course. I can't see what you'll learn from it.
Are you here to learn how to program in Lisp?
In Common Lisp:
(defun a (x) 'c)
(defun b (x) 'd)
(defvar a 1)
(defvar b 2)
LISP> (a b)
C
LISP> (b a)
D
In Scheme:
This is Pseudoscheme 2.12.
scheme[164]> (define (a x) 'c)
a defined.
scheme[165]> (define (b x) 'd)
b defined.
scheme[166]> (a b)
c
scheme[167]> (b a)
d
scheme[168]>
--
__Pascal Bourguignon__ http://www.informatimago.com/
Litter box not here.
You must have moved it again.
I'll poop in the sink.
.
- References:
- LISP code example matching an abstract construct
- From: Juan R.
- LISP code example matching an abstract construct
- Prev by Date: Re: What would a modern LispOS look like?
- Next by Date: Re: What would a modern LispOS look like?
- Previous by thread: Re: LISP code example matching an abstract construct
- Next by thread: Re: LISP code example matching an abstract construct
- Index(es):
Relevant Pages
|
|