# std.bounded_array: support inserting a new value at the end \(\#10340\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 09f70bdd91bf498644f7a42800f3e4e4df7040aa

Requested commit: 09f70bdd91bf498644f7a42800f3e4e4df7040aa

Commit: 09f70bdd91bf498644f7a42800f3e4e4df7040aa

Tree: 6baacfaa15f3d330b0c8434d84a86376e1bc9c58

Author: Arnav Singh

Committer: GitHub

## Message

```
std.bounded_array: support inserting a new value at the end (#10340)

Since `BoundedArray.insert` internally reserves space for the element
to be inserted, it can support inserting at the position that is
the current length of the array. Change the check for the insertion position
to allow this.
```

## Parents

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

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