The OpenD Programming Language

clear

Removes all remaining keys and values from an associative array.

  1. void clear(Value[Key] aa)
  2. void clear(Value[Key]* aa)
    @trusted
    void
    clear
    (
    Value
    Key
    )
    (
    Value[Key]* aa
    )

Parameters

aa Value[Key]*

The associative array.

Examples

auto aa = ["k1": 2];
aa.clear;
assert("k1" !in aa);

Meta