Thank you, Christian.

On Mon, Dec 10, 2018 at 12:36 PM Christian Kellermann <ck...@pestilenz.org>
wrote:

> * Paul Sika <p...@ponguibou.com> [181210 13:27]:
> > hi Thomas,
> > thank you very much. it is indeed clear from your explanation. it is
> about
> > the cons cells.
> >
> > But i must say that at the back of the mind it feels like it should not
> > satisfy pair? because there are 3 elements in the list.
>
> Well, it satisfies pair? since the first cell *is* a pair. The cdr
> of the pair just points to another pair...
>
> pair? makes a nice check for recursive procedures as the empty list
> is not a pair: (pair? '()) -> #f
>
> This avoids checking for list? and null?
>
>
> --
> May you be peaceful, may you live in safety, may you be free from
> suffering, and may you live with ease.
>
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to