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

[;1m  set(Terms)[0m

  There is no documentation for set(Terms, [atom])

[;1m  set(Terms, Type)[0m

  Creates an unordered set.

  [;;4mset(L, T)[0m is equivalent to [;;4mfrom_term(L, T)[0m if the result is an
  unordered set.

[;1mExamples[0m

    1> S1 = sofs:set([3,1,2,3,4], [digit]).
    2> sofs:to_external(S1).
    [1,2,3,4]
    3> S2 = sofs:from_term([1,2,3,4], [digit]).
    4> sofs:is_equal(S1, S2).
    true
