Skip to content

Commit 0dc4d7d

Browse files
authored
Add usage example for Keyword.from_keys (#13041)
1 parent 86eebc5 commit 0dc4d7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/lib/keyword.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ defmodule Keyword do
112112
113113
iex> Keyword.from_keys([:foo, :bar, :baz], :atom)
114114
[foo: :atom, bar: :atom, baz: :atom]
115+
iex> Keyword.from_keys([], :atom)
116+
[]
115117
116118
"""
117119
@doc since: "1.14.0"

0 commit comments

Comments
 (0)