HiBON.opIndex

Access an member at index

  1. const(Member) opIndex(string key)
  2. const(Member) opIndex(INDEX index)
    class HiBON
    const
    const(Member)
    opIndex
    (
    INDEX
    )
    (
    const INDEX index
    )
    if (
    isIntegral!INDEX
    )

Parameters

index INDEX

member index

Return Value

Type: const(Member)

the Member at the index

Throws

if the an member with the index does not exist an HiBONException is thrown Or an std.conv.ConvException is thrown if the key is not an index