| author | |
| committer | |
| log | fd23decbd9dc39b044867993b67607e33ec9de45 |
| tree | 2af29c71872f0251811738762612705e5a6759bf |
| parent | 119ac13eda7fe95b6c1139b4bd20e05928abe427 |
| signature |
1 files changed, 4 insertions(+), 0 deletions(-)
lib/std/array_list.zig+4| ... | ... | @@ -249,6 +249,10 @@ pub fn AlignedArrayList(comptime T: type, comptime alignment: ?u29) type { |
| 249 | 249 | return self.pop(); |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | pub fn eql(self: Self, m: []const T) bool { | |
| 253 | return mem.eql(T, self.toSliceConst(), m); | |
| 254 | } | |
| 255 | ||
| 252 | 256 | pub fn startsWith(self: Self, m: []const T) bool { |
| 253 | 257 | if (self.len < m.len) return false; |
| 254 | 258 | return mem.eql(T, self.items[0..m.len], m); |