Re: [racket-users] The Little Schemer, misprint?

2017-02-25 Thread Kieron Hardy
Thanks, Ben.

Of course you are right. I was somehow fixated and had lost the context.

Sorry for the noise.

> On Feb 25, 2017, at 9:34 AM, Ben Greenman  wrote:
> 
> The printed explanation is giving the meaning of the whole line (in the 
> context of the call to member) --- not just the meaning of the application 
> (null? lat)
> 
> Hope this helps
> 
> 
>> On Sat, Feb 25, 2017 at 11:17 AM, Kieron Hardy  
>> wrote:
>> I'm going through The Little Schemer (Fourth Edition). On page 23 the first 
>> question posed asks:
>> What is the meaning of the line
>> 
>> ((null? lat) #f)
>> 
>> where
>> lat is (mashed potatoes and meat gravy) 
>> 
>> The printed explanation seems to be a misprint as it appears to be the 
>> answer to a different question:
>> (null? lat) asks if lat is the null list. If it is, the value is #f, since 
>> the atom meat was not found in lat. If not, we ask the next question. In 
>> this case, it is not null, so we ask the next question . 
>> 
>> Is the printed answer wrong, or am I missing something?
>> 
>> Cheers,
>> 
>> Kieron
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] The Little Schemer, misprint?

2017-02-25 Thread Ben Greenman
The printed explanation is giving the meaning of the whole line (in the
context of the call to member) --- not just the meaning of the application
(null? lat)

Hope this helps


On Sat, Feb 25, 2017 at 11:17 AM, Kieron Hardy 
wrote:

> I'm going through The Little Schemer (Fourth Edition). On page 23 the
> first question posed asks:
>
> What is the meaning of the line
>
> ((null? lat) #f)
>
> where
> lat is (mashed potatoes and meat gravy)
> The printed explanation seems to be a misprint as it appears to be the
> answer to a different question:
>
> (null? lat) asks if lat is the null list. If it is, the value is #f, since
> the atom meat was not found in lat. If not, we ask the next question. In
> this case, it is not null, so we ask the next question .
> Is the printed answer wrong, or am I missing something?
>
> Cheers,
>
> Kieron
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.