Closed ljubobratovicrelja closed 7 years ago
I'd like to use assumeSameStructure to zip packed slices, but: Error: static assert "Packed slices not allowed in slice tuples" - why's that?
Because it has low priority in my TODO.
You can use mapSlice!identical
as workaround. This will make a slice not packed.
auto identical(T)(auto ref T a)
{
return a;
}
Awesome, thanks!
zip
now supports packed slices if they all have the same shape packs.
I'd like to use
assumeSameStructure
to zip packed slices, but:Error: static assert "Packed slices not allowed in slice tuples"
- why's that? And is there a plan to support this in future? If not, is there a workaround?