4 idiocket/function
(require idiocket/function) | package: idiocket |
procedure
(of-name str) →
(-> procedure? procedure?) (-> procedure? boolean?) str : string?
Returns two procedures. The first accepts a procedure and renames it using
procedure-rename to str, as an uninterned symbol.
The second returns #t if the object-name of the argument
matches the one produced by the first procedure.
procedure
(apply-until v [stop?]) → any/c
v : any/c stop? : procedure? = (negate procedure?)
Returns v if (stop? v) is true. Otherwise returns
(apply-until (v) stop?).
Will not terminate if stop? never produces a true value,
and v always remains a procedure.
procedure
(apply-later f) → procedure?
f : procedure?
Return a procedure P such that (P ...) caches all arguments,
and (P) applies f to the cached arguments.