Skip to content

Commit

Permalink
Add example of inserting into Map that already has key (#13013)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertbw authored Oct 24, 2023
1 parent af9c0aa commit 0a7a41c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/elixir/lib/enum.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,9 @@ defmodule Enum do
iex> Enum.into([a: 1, a: 2], %{})
%{a: 2}
iex> Enum.into([a: 2], %{a: 1, b: 3})
%{a: 2, b: 3}
"""
@spec into(Enumerable.t(), Collectable.t()) :: Collectable.t()
def into(enumerable, collectable)
Expand Down

0 comments on commit 0a7a41c

Please sign in to comment.