fn fromOwnedSliceSentinel(comptime sentinel: T, slice: [:sentinel]T) Self

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

Parameters

sentinel: T,
slice: [:sentinel]T,