This function is to be called either without an auxiliary function or with one. But how can you test the supplied keyword argument to know when an auxiliary function has been supplied?
function f(a; func = (b, c) -> ())
if ???
println("default")
else
println("custom")
end
end
auxfunction(b, c) = println(b, c)
f(42)
f(42; func = auxfunction)