Hi, is there a way to dispatch on lambda functions? It seems that lambda’s don’t have a specific type for themselves (unlike Functions), but are rather uniquely typed with a counter (var"#29#30"). I would like to dispatch like in the following MWE (or at least to be able to reference var"..." types):
thanks for your answer, I should have made clearer that I want to dispatch on the fact that the input is any lambda function, not only this particular one
Lambdas are not special - they’re regular <: Functions (implemented as callable structs that subtype Function). They just don’t have a convenient name, but rather a generated one.