Recently I needed to pass a function to another function with second parameter ignored. I realized that I can’t use
partial and that I need to “pack it” in another function. So I did
(some-fun "foo" #(passed-fun %1 %3)) "bar")
and it worked great.
Then I needed to do that again with different function ignoring second and last arg and I realized that I need to do
(some-fun "foo" (fn [x _ y _] (passed-fun x y)) "bar")
Could you please tell me is there a way to use function literal for this?