Skip to content

Commit 956af98

Browse files
venkatdjosevalim
authored andcommitted
added clarification to Enum.uniq_by (#5483)
1 parent 2fb41eb commit 956af98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/lib/enum.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,8 @@ defmodule Enum do
25552555
The function `fun` maps every element to a term which is used to
25562556
determine if two elements are duplicates.
25572557
2558+
The first occurrence of each element is kept.
2559+
25582560
## Example
25592561
25602562
iex> Enum.uniq_by([{1, :x}, {2, :y}, {1, :z}], fn {x, _} -> x end)

0 commit comments

Comments
 (0)