.. _functx_value-union: ================== functx:value-union ================== A união de duas sequências de valores Descrição ~~~~~~~~~ A função functx:value-union devolve a união dos valores de duas sequências, numa ordem definida pela implementação. Remove os repetidos, inclusive entre os valores que aparecem só numa das sequências. É útil porque o operador union (ou "|") só funciona com nós, e não com valores atômicos. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg1:string() - a primeira sequência * - arg2:string() - a segunda sequência Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:value-union((1,2),(3,4)) - (1, 2, 3, 4) * - functx:value-union((1,2,3),(2,3,4)) - (1, 2, 3, 4) * - functx:value-union((1,2,2,3),(3,4)) - (1, 2, 3, 4) * - functx:value-union((1,2,2,3),()) - (1, 2, 3) Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_value-intersect`. * :ref:`functx_value-except`.