[plt-scheme] The role of proper and improper lists?

From: Marco Morazan (morazanm at gmail.com)
Date: Fri Jan 25 09:44:04 EST 2008

> So there are two ways of doing... the same thing? Is it the same?
>
> An improper list is *not* terminated with the empty list, a proper
> list is terminated:
>
> (cons 1 2)
>
> versus
>
> (cons 1 (cons 2 '()))
>
> Where/when/why does this matter?

Are you familiar with map? Using map is quite common and it requires a
proper list as input.

Cheers,

Marco


Posted on the users mailing list.