# remove iterator API from std.ArrayList · gitcafe/zig

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

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

Visibility: public

Requested revision: c3d8b1ffebb94d180c382bd74128d17dc21c1392

Requested commit: c3d8b1ffebb94d180c382bd74128d17dc21c1392

Commit: c3d8b1ffebb94d180c382bd74128d17dc21c1392

Tree: 174415dbc79d6f1de6c57d3a4eebe390c660753e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
remove iterator API from std.ArrayList

This is not a meaningful abstraction. Use a for loop on the result
of `toSlice` or `toSliceConst`.

An iterator can be implemented on top of ArrayList by applications which
want additional functionality, such as removing elements while
iterating.

Closes #3037.

```

## Parents

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

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