Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The Little Schemer Chap 5 a question

22 views
Skip to first unread message

x19290

unread,
Jan 21, 2012, 5:27:48 AM1/21/12
to
Hello.

I have just read Chapter 5 of this book. I cannot understand one
thing.

Question:
I think `eqlist?' is horrible, because I can easily write `equal?'
without this.
It is very straightforward. See, https://gist.github.com/1652234
Why `eqlist?' is needed?

Thank you.

Hiroki Horiuchi

Pascal J. Bourguignon

unread,
Jan 22, 2012, 12:55:05 AM1/22/12
to
x19290 <x19...@gmail.com> writes:

> I have just read Chapter 5 of this book. I cannot understand one
> thing.
>
> Question:
> I think `eqlist?' is horrible, because I can easily write `equal?'
> without this.
> It is very straightforward. See, https://gist.github.com/1652234

Yes.


> Why `eqlist?' is needed?

It is not needed. But once you have it, you can write equal? using it.


But I agree, sometimes it's easier and clearer to write a function from
scratch than to try to reuse some other function.

--
__Pascal Bourguignon__
http://www.informatimago.com
0 new messages