This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/table.replace.md
2021-03-12 22:10:24 +01:00

21 lines
423 B
Markdown

Replace all instances of `value` with `replacement` in an array. Array elements are modified in place.
```lua
table.replace(tbl, value, replacement)
```
### Parameters ###
`tbl` is the table to be modified. `value` is the value to be replaced, and `replacement` is the new value to use.
### Return Value ###
Returns `tbl`, modified in place with the replacement values.
### Availability ###
Premake 5.0 or later.