UCE Docs / StringList::keys

Signature

StringList StringList::keys() const

Parameters

return value : index keys as strings

Returns the list indexes as strings from 0 through size() - 1. Use it when code expects string keys for a list-shaped value.

Example

StringList items = split("red,green,blue", ",");
print(join(items.keys(), ","), "\n");
Output
0,1,2