erlang-language-platform/website/docs
Tom Davies 36ce0a740c Unnecessary explicit fold to build a map
Summary:
Add new diagnostic and fix to warn on code of the form

```
lists:foldl(fun(K, Acc) -> Acc#{K => []} end, #{}, List)
```

and suggest

```
maps:from_keys(List, [])
```

and similarly for folds equivalent to `maps:from_list/1`

Reviewed By: alanz

Differential Revision: D69051447

fbshipit-source-id: efd4b8e181da1d8ebc5384c4671d7dffc1df39e5
2025-02-06 04:22:30 -08:00
..
contributing Add instructions on how to contribute to the error index 2023-09-15 06:58:40 -07:00
erlang-error-index Unnecessary explicit fold to build a map 2025-02-06 04:22:30 -08:00
get-started Allow custom app data in .elp.toml 2025-01-28 08:17:27 -08:00
architecture.md Add feature gallery 2023-09-07 08:29:36 -07:00
feature-gallery.mdx Fix spelling in feature-gallery 2024-01-08 01:29:41 -08:00