New Blog Post: Discovering the Elegance of Removing Duplicates with Rosetta Code - Forum

Forum Navigation
You need to log in to create posts and topics.

New Blog Post: Discovering the Elegance of Removing Duplicates with Rosetta Code

Reinier Maliepaard has created a new awesome post!

Discovering the Elegance of Removing Duplicates with Rosetta Code:
https://visualneo.com/tips-and-tricks/discovering-the-elegance-of-removing-duplicates-with-rosetta-code

Thank you so much @reinier!

Vadim, Gaev and Darbdenral have reacted to this post.
VadimGaevDarbdenral

As eluded by @luishp, Reinier Maliepaard (@reinier) authored an elegant method for VisualNEOWin developers to extract a string of unique characters in a specified string.

I am all for elegance (less code) ... so I took his code and turned it into a VisualNEOWin Function ... so you can achieve the same result with just one (Call) command like so ...

SetVar "[str]" "aaxaabbeedxgg"

Call "rmRemoveDuplicates" "[str]" "[uniques]"

AlertBox "uniques" "[uniques]"

I named it rmRemoveDuplicates to give credit for the original script to Reinier.

I have attached a .zip file that contains the Function file ... just unzip it into the Functions folder of VisualNEOWin (note that the Function file has no file extension).

If others can test/validate this code, I can then ask Luis to include it in the next release of VisualNEOWin.

Uploaded files:
  • You need to login to have access to uploads.
Vadim, HPW and 3 other users have reacted to this post.
VadimHPWCN_IcemandanitoDarbdenral