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

[;1m  list_to_ref(String)[0m

[;;4mSince[0m:
  OTP 20.0

  Returns a reference whose text representation is a [;;4mString[0m.

  For example:

    > list_to_ref("#Ref<0.4192537678.4073193475.71181>").
    #Ref<0.4192537678.4073193475.71181>

  Failure: [;;4mbadarg[0m if [;;4mString[0m contains a bad representation of a
  reference.

  [;;4mWarning[0m

    This BIF is intended for debugging and is not to be used in
    application programs.
