Can you think of a way to declare, initialize and add key-value pairs to d
in a single step?
Perfect! We can assign key-value pairs in brackets; because of type inference, d
gets that it's made for string keys and values.
Almost! We can assign key-value pairs in brackets; because of type inference, d
gets that it's made for string keys and values.