Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Sep 21, 2008 Sep 21, 2008
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!!!
TOPICS
Advanced techniques
264
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

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

Translate
Community Expert ,
Sep 21, 2008 Sep 21, 2008
LATEST
A nice trick is to use the fact that Coldfusion automatically overwrites keys in a struct, avoiding duplicates.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources