fn: sgnd_array_union
Purpose
Populate a named destination array with unique items from source arrays.
Arguments
$1— Name of destination array. $2... Names of one or more source arrays.
Side effects
Resets the destination array and inserts first occurrences only.
Returns
- 0 after combining arrays; 1 if no destination or source argument is given.
Usage
left=(alpha beta)
right=(beta gamma)
combined=()
sgnd_array_union combined left right
