fn fromOwnedSlice(allocator: Allocator, slice: Slice) Self

ArrayList takes ownership of the passed in slice. The slice must have been allocated with allocator. Deinitialize with deinit or use toOwnedSlice.

Parameters

allocator: Allocator,
slice: Slice,