"valueAt" (mapping::valueAt)
Returns the value at the given index position.
Synopsis
T mapping.valueAt(uint idx);
Parameters
| Parameter | Description |
|---|---|
| idx | 0-based index position in the mapping. |
Description
Returns the value at the given 0-based index position. The index must be in the range 0 to count() - 1.
Example
main()
{
mapping m = makeMapping("city", "Vienna", "country", "Austria", "population", 1900000);
DebugN(m.valueAt(0)); // "Vienna"
DebugN(m.valueAt(2)); // 1900000
}
Assignment
Mapping
