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

[;1m  family_projection(SetFun, Family1)[0m

  If [;;4mFamily1[0m is a family, then [;;4mFamily2[0m is the family with the
  same index set as [;;4mFamily1[0m such that [;;4mFamily2[0m[i] is the result
  of calling [;;4mSetFun[0m with [;;4mFamily1[0m[i] as argument.

[;1mExamples[0m

    1> F1 = sofs:from_term([{a,[[1,2],[2,3]]},{b,[[]]}]).
    2> F2 = sofs:family_projection(fun sofs:union/1, F1).
    3> sofs:to_external(F2).
    [{a,[1,2,3]},{b,[]}]
