Hi David
Thank you for replying to my question.
I have a much better understanding of what is happening now, especially
about passing a function instead the result of a function. Thank you.
Regards
Philip
On Tuesday, 12 May 2020 20:08:58 UTC+2, David Storrs wrote:
>
> Hi Philip,
>
> The
Hi Philip,
The essence here is when evaluation happens:
; All of these are equivalent:
(define foo (lambda () 7)
(define foo (thunk 7)) ; 'thunk' is a term of art meaning "function
of 0 arguments"
(define (foo) 7)
Try running the following code in the repl:
; start code
(define
2 matches
Mail list logo