Method dispatch on function types with constructor

I think you’re looking for Type{A}, a type whose only instance is A (Types · The Julia Language).

3 Likes