BrowserUk's approach is fine (of course!), but just to elaborate what was wrong with yours:
In reply to Re: Combining Duplicate entries in an Array
by Eliya
in thread Combining Duplicate entries in an Array
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |