Read the element from lynx_value of array type by given index.
| Key | Description |
|---|---|
| [in] env | The environment in which lynx value runs, typically nullptr. |
| [in] object | The lynx_value to query. |
| [in] index | The index of the value to get. |
| [out] result | lynx_value at index. |
Returns lynx_api_ok if the API succeeded. Returns lynx_api_array_expected if the types do not match.
After using the extracted result, memory needs to be freed using lynx_value_remove_reference.