From ad2718fc690ffd138684a8d4883bcc98b37eea17 Mon Sep 17 00:00:00 2001 From: Artem Solomatin Date: Sat, 28 Oct 2023 14:18:34 +0300 Subject: [PATCH] Add usage example for Keyword.from_keys --- lib/elixir/lib/keyword.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/elixir/lib/keyword.ex b/lib/elixir/lib/keyword.ex index 7b59a4451f3..7fa369b2582 100644 --- a/lib/elixir/lib/keyword.ex +++ b/lib/elixir/lib/keyword.ex @@ -112,6 +112,8 @@ defmodule Keyword do iex> Keyword.from_keys([:foo, :bar, :baz], :atom) [foo: :atom, bar: :atom, baz: :atom] + iex> Keyword.from_keys([], :atom) + [] """ @doc since: "1.14.0"