Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

union function

The elements in any of some lists, each once, in order.

How to write it

union(a, b, ...)

a
A list. Takes a list.
b
A list. Takes a list.

Examples

  • union⁡([1,2],[2,3])=[1,2,3]\displaystyle \operatorname{union}(\left[ 1, 2 \right], \left[ 2, 3 \right]) = \left[ 1, 2, 3 \right]
    union([1, 2], [2, 3])

    In the solver, union([1, 2], [2, 3]) gives [1, 2, 3].

    Open in the solver
  • accumulate

    Running totals of a list.

  • total

    Sum of the elements of a list.

  • append

    A list with an element added at the end.

  • thread

    Apply a function to corresponding elements of lists.

  • apply

    Replace the head of an expression, or the brackets of a list, with a function.

  • tally

    How often each element occurs: a list of element and count pairs.