Duplicates slice.
GC-allocated Contiguous mutable slice.
import mir.ndslice; auto x = 3.iota!int; Slice!(immutable(int)*) imm = x.idup; Slice!(int*) mut = imm.dup; assert(imm == x); assert(mut == x);
.Slice.idup
See Implementation
Duplicates slice.