How are vectors of vectors type coerced?

From Single- and multi-dimensional Arrays · The Julia Language

If they all have a common promotion type then they get converted to that type using convert and that type is the array’s eltype

A somewhat abstract advice is to use Vector for elements which are used for “the same thing”. In your particular example, it would be more tidy to use a Tuple:

ivvec = (inds, vals)
2 Likes