fn getOrPutMap(self: *Wip, allocator: Allocator, index: usize) Allocator.Error!*Map
self: *Wip
allocator: Allocator
index: usize
2666 2667 2668 2669 2670
fn getOrPutMap(self: *Wip, allocator: Allocator, index: usize) Allocator.Error!*Map { if (index >= self.maps.items.len) try self.maps.appendNTimes(allocator, .{}, index + 1 - self.maps.items.len); return &self.maps.items[index]; }