Skip to main content

[]

Symbol of Map.

Overloads

NameDescription
(Map lhs [] const string key) -> ObjectAccesses an element in the map by key. Throws an exception if the key is not found.
(const Map lhs [] const string key) -> const ObjectAccesses an element in the map by key. Throws an exception if the key is not found.

(Map lhs [] const string key) -> Object

Accesses an element in the map by key. Throws an exception if the key is not found.

Parameters

  • lhs: Left-hand side value.
  • key: The key of the element to access.

(const Map lhs [] const string key) -> const Object

Accesses an element in the map by key. Throws an exception if the key is not found.

Parameters

  • lhs: Left-hand side value.
  • key: The key of the element to access.