hi,
when doing a union (|) on arrays it appears as if the first array
remains as is, and then any missing values from the second array are
appended, with duplicates in the first array remaining.
a = ({ 1, 7, 2, 5, 4 });
b = ({ 2, 1, 3, 5, 5 });
a|b is ({ 1, 7, 2, 5, 4, 3, 5 })
b|a is ({ 2, 1, 3, 5, 5, 7, 4 })
the reason for these questions is that the tutorial claims:
the elements in the result can come in any order and duplicates may or
may not be removed.
should pike be (and remain) that unpredictable?
greetings, martin.