Skip to main content
Inspiring
September 21, 2008
Answered

List functions: How to remove similar values/strings from a list

  • September 21, 2008
  • 1 reply
  • 294 views
Hello

I'm stuck with the following: I created several lists and want them no loger to show similar values or strings.
p.e. my list looks like
93,97,101,104,105,107,110,111,113,93,111
each of the values 93 and 111 occur twice in this list. which function (or whatever?) removes these two values though the list looks like
93,97,101,104,105,107,110,111,113??

I would like to do this as well with a list containing names. p.e
tom jones,kathy winter,daryll hana,steven jobs,hillary hill,joshua graves,hillary hill
where hillary hill occurs twice. my list should look like
tom jones,kathy winter,daryll hana,steven jobs,hillary hill,joshua graves

thank you very much for a short solution!!!
This topic has been closed for replies.
Correct answer BKBK
A nice trick is to use the fact that Coldfusion automatically overwrites keys in a struct, avoiding duplicates.

1 reply

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
September 21, 2008
A nice trick is to use the fact that Coldfusion automatically overwrites keys in a struct, avoiding duplicates.