• About
  • Documentation
  • Github
  • Jam v0.0.1 Documentation
    • The Jam Language Reference
      • 1. Comments
      • 2. Instructions
      • 3. Values
      • 4. Identifiers
      • 5. Literals
      • 6. Operations
      • 7. Variables
      • 8. Assignments
      • 9. Flow Control
      • 10. Methods
      • 11. Lambdas
      • 12. Types
      • 13. Type Casting
      • 14. Arrays
      • 15. Associative Arrays
      • 16. Enumerations
      • 17. Modifiers
      • 18. Imports
      • 19. Traits
      • 20. Dependent Types
    • Library Reference
    • The Jam Tutorial
    • Jam Roadmap

15. Associative Arrays

Associative arrays, also known as dictionaries and hash tables/maps, are a collection of key-value pairs, with keys being unique.

15.1. Syntax

AssociativeArrayValue   ::=  "{" AssociativeArrayElement ( ArraySeparator AssociativeArrayElement )* "}"
AssociativeArrayElement ::=  Value "=>" Value

Back to top

Source