HiBON.remove

Removes a member with name of key

  1. void remove(string key)
    class HiBON
    @trusted
    void
    remove
    (
    const string key
    )
  2. void remove(INDEX index)

Parameters

key string

name of the member to be removed

Examples

// remove
       auto hibon = new HiBON;
       hibon["a"] = 1;
       hibon["b"] = 2;
       hibon["c"] = 3;
       hibon["d"] = 4;

       assert(hibon.hasMember("b"));
       hibon.remove("b");
       assert(!hibon.hasMember("b"));