Initial community commit
This commit is contained in:
19
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/table.indexof.md
vendored
Normal file
19
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/table.indexof.md
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Returns the key or index of a value within a table.
|
||||
|
||||
```lua
|
||||
table.indexof(arr, value)
|
||||
```
|
||||
|
||||
### Parameters ###
|
||||
|
||||
`arr` is a table containing indexed elements. `value` is the value for which to search.
|
||||
|
||||
|
||||
### Return Value ###
|
||||
|
||||
The key or index of the value if it is present in the table; nil otherwise.
|
||||
|
||||
|
||||
### Availability ###
|
||||
|
||||
Premake 5.0 or later.
|
||||
Reference in New Issue
Block a user