I'd like to replace calls to specific set of functions to my implementations if available, for instance:
(define (call-my-fn f . args)
(cond [(eq? f append) (apply my-append args)]))
All of my implementations are in a separate file and I don't want to keep adding to the cond clause. Is there a way I can write something like:
(require "my-fns.rkt")
(define (call-my-fn f . args)
(cond [(is-defined? f "my-fns.rkt") (apply "my-version-of-f" args)]))