# clean up std.ArrayList · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fc6446702ed8261a1d02b7fbb8410a303cb5daaa)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: fc6446702ed8261a1d02b7fbb8410a303cb5daaa

Requested commit: fc6446702ed8261a1d02b7fbb8410a303cb5daaa

Commit: fc6446702ed8261a1d02b7fbb8410a303cb5daaa

Tree: 9620a3c93ebdaed9b7219c359cafddab83188ef7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
clean up std.ArrayList

 * add `std.debug.assertError`
 * `std.ArrayList` update everything to follow `self` convention
 * rename `std.ArrayList.set` to `std.ArrayList.setOrError`
 * add `std.ArrayList.set` which asserts

Before 1.0.0 we might remove some of this API, because you can use
`toSlice()` for everything, but it's ok to add these functions as
an experiment before then.

```

## Parents

- [e0092ee4a573502a4110a6d4aeb7e7d3cdc8987b](https://git.cafe/gitcafe/zig/commit/e0092ee4a573502a4110a6d4aeb7e7d3cdc8987b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/fc6446702ed8261a1d02b7fbb8410a303cb5daaa?format=markdown)
