Input: {a,a,b,c,d,d,e} Required Output: {a,b,c,d} Is there any e

Certified Senior Developer
Input: {a,a,b,c,d,d,e}
Required Output: {a,b,c,d}

Is there any existing function to complete the above requirement?
I am using v6.6

Thanks...

OriginalPostID-99680

OriginalPostID-99680

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    I also use the Union method - however since I needed to remove duplicates in several different places, i wrote a custom expression rule which takes one input (array) and passes out the same array with duplicates removed. The internals of the expression rule is just the aforementioned Union(), though it could theoretically be replaced with something else in the future.
Reply
  • 0
    Certified Lead Developer
    I also use the Union method - however since I needed to remove duplicates in several different places, i wrote a custom expression rule which takes one input (array) and passes out the same array with duplicates removed. The internals of the expression rule is just the aforementioned Union(), though it could theoretically be replaced with something else in the future.
Children
No Data