CfNodeRef.opIndex

CfNodeRef opIndex(string key) @safe pure nothrow

Index into object by key.

Returns another CfNodeRef for chaining. If the key is not found or this is not an object, returns an invalid CfNodeRef.

Parameters

keyThe key to look up

Returns

A CfNodeRef pointing to the value, or an invalid ref if not found.
CfNodeRef opIndex(size_t index) @safe pure nothrow

Index into array by index.

Returns another CfNodeRef for chaining. If the index is out of bounds or this is not an array, returns an invalid CfNodeRef.

Parameters

indexThe array index to access

Returns

A CfNodeRef pointing to the element, or an invalid ref if out of bounds.