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])In the solver,
Open in the solverunion([1, 2], [2, 3])gives[1, 2, 3].
Related functions
- 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.