%% %CopyrightBegin%
%%
%% SPDX-License-Identifier: Apache-2.0
%%
%% Copyright Ericsson AB 2021-2025. All Rights Reserved.
%%
%% %CopyrightEnd%

[;1m  get_keys()[0m

[;;4mSince[0m:
  OTP 18.0

  Returns a list of all keys present in the process dictionary. The
  items in the returned list can be in any order.

  For example:

    > put(dog, {animal,1}),
    put(cow, {animal,2}),
    put(lamb, {animal,3}),
    get_keys().
    [dog,cow,lamb]

[;1m  get_keys(Val)[0m

  Returns a list of keys that are associated with the value [;;4mVal[0m in
  the process dictionary. The items in the returned list can be in
  any order.

  For example:

    > put(mary, {1, 2}),
    put(had, {1, 2}),
    put(a, {1, 2}),
    put(little, {1, 2}),
    put(dog, {1, 3}),
    put(lamb, {1, 2}),
    get_keys({1, 2}).
    [mary,had,a,little,lamb]
