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

[;1m  composite(Function1, Function2)[0m

  Returns the composite of the functions [;;4mFunction1[0m and [;;4mFunction2[0m.

[;1mExamples[0m

    1> F1 = sofs:a_function([{a,1},{b,2},{c,2}]).
    2> F2 = sofs:a_function([{1,x},{2,y},{3,z}]).
    3> F = sofs:composite(F1, F2).
    4> sofs:to_external(F).
    [{a,x},{b,y},{c,y}]
    5> sofs:composite(F2, F1).
    ** exception error: bad_function
         in function  sofs:composite/2
