reduce(vcat and and reduce(hcat, are not consistent in the return type for a single element collection, except if that collection is an array #31169
Labels
arrays
[a, r, r, a, y, s]
collections
Data structures holding multiple items, e.g. sets
fold
sum, maximum, reduce, foldl, etc.
The
reduce(vcat
andhcat
are a bit funny about the types they return when you reduce over a single elementanother example
So this issue is two fold
I have this spare enhancement to the tests for these functions,
that I was writing for other reasons (I was thinking about improving their performance like #21672)
The text was updated successfully, but these errors were encountered: