Compound.opIndex

Gets the element at the given index.

  1. Tag[] opIndex()
  2. Tag opIndex(string name)
    class Compound
    pure nothrow @safe
    opIndex
    (
    string name
    )

Throws

RangeError if the given index is not in the array

Examples

assert(new Compound(new Named!String("0", "test"))["0"] == "test");

Meta