Function union

Source
pub fn union(arr1: Array, arr2: Array) -> Result<Array, Box<EvalAltResult>>
Expand description

Returns the set union of two arrays.

let set1 = [7, 1, 7, 7, 4];
let set2 = [7, 0, 4, 4, 0];
let u = union(set1, set2);
assert_eq(u, [0, 1, 4, 7]);