Dynamically sending keyword arguments

Racket has keyword-apply function to compensate apply's inability to pass keyword arguments dynamically. However, I can't see dynamic-send's keyword counterpart. What should I do to dynamically send an object's method with keywords determined at runtime?

You can use keyword-apply dynamic-send for that, like:

(keyword-apply dynamic-send kws kw-args
               object
               method-name
               args)
1 Like