Search found 1 match

by elibarzilay
Sat Dec 19, 2009 5:45 pm
Forum: Scheme
Topic: Getting the name of a #<procedure>
Replies: 1
Views: 6980

Re: Getting the name of a #<procedure>

MzScheme will always give procedures a name according to the context that they were defined in -- either from a ‘define’ or a ‘let’ or any of their relatives. However, not all functions can be names in this way, for example, given (define (foo x) (lambda () x)) ‘(foo 5)’ is a procedure t...