Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: small format change

Maps—also called hashes, dictionaries, and associative arrays—are created by enclosing comma-delimited name-value pairs in curly braces, like so:

...


KRL allows deep queries by what are known as hash paths. A hash path is an array whose elements represent the key values (for a map) or array indices of a path from the root of a complex data structure to the element of interest:

Code Block
languagejavascript
themeConfluence
another_val = some_hash{["fizz", "b"]}; // returns 6

...

Code Block
languagejs
themeConfluencelinenumberstrue
some_string = "map_key";
literal_map = {some_string : "associated value"}; // DOES NOT WORK

...