# add replaceRange\(\) function to ArrayList · gitcafe/zig

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

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

Visibility: public

Requested revision: c0a0193c0a90f633d7a02bb8631f974ab5e2481e

Requested commit: c0a0193c0a90f633d7a02bb8631f974ab5e2481e

Commit: c0a0193c0a90f633d7a02bb8631f974ab5e2481e

Tree: db4e0743fcc84c9e09a5fb7b42a3258367403901

Author: Jesse Rudolph

Committer: Jesse Rudolph

## Message

```
add replaceRange() function to ArrayList

generalizes functionality of ArrayList.insertSlice() to overwrite
a range of elements in the list and to grow or shrink the list as needed
to accommodate size difference of the replacing slice and the range
of existing elements.

```

## Parents

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

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