Several students asked me about the approach to pass a function as a parameter.
Here is the method.
Suppose you have a function B, and you wanna call A with a function parameter, then
you can call like this:
(A #'B)
#' is mostly the same as quote. But typically, #' denotes a function. quote is to represent a list.
-Lei
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment