I want to create a Vector of Functions. This works fine, if the vector has multiple elements:
[mean, sum]
2-element Vector{Function}:
mean (generic function with 95 methods)
sum (generic function with 30 methods)
As expected the type here is Vector with element type Function.
But if the vector has only one element, this happens:
[mean]
1-element Vector{typeof(mean)}:
mean (generic function with 95 methods)
Suddenly it is a Vector with element type typeof(mean). Is this a bug or am I not smart enough to get the point?