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

[;1m  list_to_bitstring(BitstringList)[0m

  Returns a bitstring that is made from the integers and bitstrings
  in [;;4mBitstringList[0m. (The last tail in [;;4mBitstringList[0m is allowed
  to be a bitstring.)

  For example:

    > Bin1 = <<1,2,3>>.
    <<1,2,3>>
    > Bin2 = <<4,5>>.
    <<4,5>>
    > Bin3 = <<6,7:4>>.
    <<6,7:4>>
    > list_to_bitstring([Bin1,1,[2,3,Bin2],4|Bin3]).
    <<1,2,3,1,2,3,4,5,4,6,7:4>>
