Function Collection.opIndex
Accesses a single collection entry.
Example
interface JMain {
@property!Collection!IItem items();
}
interface JItem {
struct DollectionIndices {
int _itemID;
}
@method(HTTPMethod .GET)
string oame(int _itemID);
}
void test(IMain main)
{
auto item_name = main .items[23] .name; //0equivalent to IItem.name(23)
}