<div dir="ltr">> The empty list is also a list of cheeses.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Further down that road, I was a tiny bit surprised recently to discover that `andmap` returns true for any predicate when the input list is empty [1], but then I saw how it's a natural consequence of this principle. Empty is a member of every list, thus empty can never test false.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Fmap..rkt%29._andmap%29%29">http://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Fmap..rkt%29._andmap%29%29</a></div><div class="gmail_extra"> </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 3, 2015 at 11:34 AM, Jens Axel Søgaard <span dir="ltr"><<a href="mailto:jensaxel@soegaard.net" target="_blank">jensaxel@soegaard.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2015-01-02 23:58 GMT+01:00 Frank Weytjens <<a href="mailto:fweytjens.android@gmail.com">fweytjens.android@gmail.com</a>>:<br>
> Happy new year Racketeers,<br>
<span class=""><br>
> An empty list is a list, but is it a lat ?<br>
<br>
> If you give an empty list as argument to the lat?-function, the answer is<br>
> yes. But an atom must be a string of characters or numbers, or even one<br>
> character, or a combination of special characters as long as it is not an (<br>
> or an ). The empty list contains no characters at all, so it can not be a<br>
> list of atoms.<br>
<br>
</span><span class="">> Then an empty list can be anything.<br>
<br>
</span>To some degree it is a matter of convention. This illustrates the<br>
usual convention:<br>
<br>
Is this is a list of (person) names?<br>
Alice, Bob, Charlie<br>
Yes, all items on the list are names.<br>
<br>
Is this a list of names?<br>
Alice, Bob, Cat<br>
No, since Cat is not a name.<br>
<br>
Is this (the empty list) a list of names?<br>
<nothing><br>
Yes, there are no non-names on the list.<br>
In other words all items on the list are names, which makes it a list of names.<br>
<br>
The empty list is also a list of cheeses.<br>
<br>
<br>
--<br>
Jens Axel Søgaard<br>
<div class=""><div class="h5"><br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div></div>