On Fri, Jan 08, 2016 at 12:58:14PM -0800, Eduardo Bonelli wrote:
> Hello,
> 
>      Why do the values of these two expressions differ?
> 
> > (begin (void))
> > ((lambda x (begin x)) (void))
> '(#<void>)
> 
>      In the second case, I understand that CBV would evaluate the argument 
> "(void)" to obtain the (untyped) value "#<void>". It then passes this on to 
> the function "((lambda x (begin x))", resulting in "(begin #<void>)". So why 
> does this not evaluate to #<void>?
((lambda x x) (void)) returns a list containing the void object. Perhaps you 
meant (lambda (x) (begin x))?

--
William J. Bowman

-- 
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.

Attachment: signature.asc
Description: PGP signature

Reply via email to