There was an error while loading. Please reload this page.
1 parent 5b8c283 commit 1986698Copy full SHA for 1986698
README.md
@@ -1197,6 +1197,18 @@ directives (see [Modules](#modules)).
1197
%{a: 1, b: 2, c: 3}
1198
```
1199
1200
+* <a name="map-key-arrow"></a>
1201
+ Use the verbose key-value syntax for maps if any key is not an atom.
1202
+ <sup>[[link](#map-key-arrow)]</sup>
1203
+
1204
+ ```elixir
1205
+ # not preferred
1206
+ %{"c" => 0, a: 1, b: 2}
1207
1208
+ # preferred
1209
+ %{:a => 1, :b => 2, "c" => 0}
1210
+ ```
1211
1212
### Strings
1213
1214
* <a name="strings-matching-with-concatenator"></a>
0 commit comments