Duplicates a slice with malloc. Equivalent to .dup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice). FUTURE: all the semantics are not well-defined with null slices, but it would be tricky to think about it and define it.
See Implementation
Duplicates a slice with malloc. Equivalent to .dup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice). FUTURE: all the semantics are not well-defined with null slices, but it would be tricky to think about it and define it.