Accessing the constructor of a type as a function

The type is the “constructor function”, however it’s not of type Function. Usually, if you want to type-constrain for anything callable, you can use Base.Callable which is the same as Union{Function, Type} for that reason.

4 Likes