- Static arrays are automatically unwrapped when creating a
StructArray{<:StaticArray}
#186
pop!
is now supported onStructVector
s #190
- Renamed
fieldarrays
toStructArrays.components
#167 getproperty
is no longer used to access fields of a struct. It is replaced byStructArrays.component(x, i)
#167. This is only relevant for structs with custom layout.- Inner constructors are bypassed on
getindex
#145 - Broadcast on
StructArray
s now returns aStructArray
#136
fieldarrays
now returns a tuple of arrays for aStructArray{<:Tuple}
push!
now only works if theStructArray
and the element have the same propertynames- The special constructor
StructArray(first_col => last_col)
is no longer supported
- Renamed
columns
tofieldarrays
StructArray{T}(args...)
has been deprecated in favor ofStructArray{T}(args::Tuple)
- Added
collect_structarray
function to collect an iterable of structs into aStructArray
without having to allocate an array of structs StructArray{T}(undef, dims)
andStructArray(v::AbstractArray)
now support anunwrap
keyword argument to specify on which types to do recursive unnesting of array of structs to struct of arrays