Eltype vs typeof what is the difference?

Don’t think of the type of the elements of a container this way: it only makes sense if the type of all elements is the same and that type is concrete so it can’t have any subtypes.

2 Likes