[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
two elementary questions
From: |
KELLEHER,KEVIN (Non-HP-Roseville,ex1) |
Subject: |
two elementary questions |
Date: |
Tue, 11 Dec 2001 09:58:49 -0800 |
1. What is the difference in meaning between these two expressions?
(lamdba x x)
(lambda (x) x)
2. I've been doing the exercises in a learning-scheme book, and one is
to implement the "list" function. What is wrong here?
(define (list . x)
(cond
((null? x) '())
((null? (cdr x)) x)
(else (cons (car x) (ll (cdr x))))))
(list 1 2 3 4) => (1 (2 3 4)), but I want (1 2 3 4).
Kevin Kelleher
- two elementary questions,
KELLEHER,KEVIN (Non-HP-Roseville,ex1) <=