# dictionary

    .dictionary dictionary:{Map<String, Any>} -> Dictionary<*>

Content copied to clipboard

Makes the initialization of a dictionary explicit, to avoid ambiguity with collection initialization.

    .var {dict}
      .dictionary
        - a:
          - aa: 1
          - ab: 2
        - b:
          - ba: 3
          - bb: 4

    .foreach {.dict}
      It would not iterate key-value pairs properly without the explicit `.dictionary` call.

Content copied to clipboard

#### Return

the dictionary

#### Parameters

dictionary

- Likely a body argument

dictionary to initialize

#### Wiki page

dictionary