The OpenD Programming Language

StringMap.this

Constructs an associative array using keys and values from the builtin associative array Complexity: O(n log(n))

  1. this(typeof(null) aa)
  2. this(T[string] aa)
    struct StringMap(T)
    @trusted pure nothrow
    this
    ()
    (
    T[string] aa
    )
  3. this(string[] keys, T[] values)

Examples

StringMap!int map = ["key" : 1];
assert(map.findPos("key") == 0);

Meta