In the below example, whether or not cat produces a DimArray depends on the type of vector the two Dim{:a} objects wrap. When they're matched, cating on a new dimension successfully produces a DimArray, but when they're equivalent but created differently, then cat falls back to returning a Matrix:
In the below example, whether or not
cat
produces aDimArray
depends on the type of vector the twoDim{:a}
objects wrap. When they're matched,cat
ing on a new dimension successfully produces aDimArray
, but when they're equivalent but created differently, thencat
falls back to returning aMatrix
: