Initial community commit
This commit is contained in:
20
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/table.extract.md
vendored
Normal file
20
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/table.extract.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
Enumerates an array of objects and returns a new table containing only the value of one particular field.
|
||||
|
||||
|
||||
```lua
|
||||
table.extract(arr, "key")
|
||||
```
|
||||
|
||||
### Parameters ###
|
||||
|
||||
`arr` is an array of tables. `key` is the name of the field to be extracted.
|
||||
|
||||
|
||||
### Return Value ###
|
||||
|
||||
A new array containing only the values of the provided field key.
|
||||
|
||||
|
||||
### Availability ###
|
||||
|
||||
Premake 4.4 or later.
|
||||
Reference in New Issue
Block a user