Skip to content

Commit 379f38e

Browse files
committed
Add Enum cheatsheet
1 parent 9b9ce35 commit 379f38e

File tree

5 files changed

+894
-3
lines changed

5 files changed

+894
-3
lines changed

lib/elixir/lib/enum.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,13 @@ defmodule Enum do
256256
iex> Enum.map(map, fn {k, v} -> {k, v * 2} end)
257257
[{"a", 2}, {"b", 4}]
258258
259-
However, many other enumerables exist in the language, such as `MapSet`s
259+
Many other enumerables exist in the language, such as `MapSet`s
260260
and the data type returned by `File.stream!/3` which allows a file to be
261261
traversed as if it was an enumerable.
262262
263+
For a general overview of all functions in the `Enum` module, see
264+
[the `Enum` cheatsheet](enum-cheat.html).
265+
263266
The functions in this module work in linear time. This means that, the
264267
time it takes to perform an operation grows at the same rate as the length
265268
of the enumerable. This is expected on operations such as `Enum.map/2`.

lib/elixir/pages/anti-patterns/code-anti-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ defmodule Extract do
496496
end)
497497
end
498498
end
499-
````
499+
```
500500

501501
```elixir
502502
# URL query string according to with the planned format - OK!

0 commit comments

Comments
 (0)