You are here: PSPad forum > English discussion forum > Re: How to simple & quickly remove duplicate numbers?

Re: How to simple & quickly remove duplicate numbers?

#1 How to simple & quickly remove duplicate numbers?

Posted by: maki | Date: 2020-03-23 19:16 | IP: IP Logged

How to simple & quickly remove duplicate numbers?

02,07,10,12,20,21,25,26,28,47,52,58,62,64,68,70,71,72,76,78,03,05,06,12,14,17,20,23,27,29,38,39,44,47,49,59,61,70,71,76,05,10,12,18,20,28,29,35,38,43,47,58,64,67,70,71,72,76,78,79

Options: Reply | Quote | Up ^


#2 Re: How to simple & quickly remove duplicate numbers?

Posted by: pspad | Date: 2020-03-23 19:23 | IP: IP Logged

Transform it to lines, remove and transform back

Options: Reply | Quote | Up ^


#3 Re: How to simple & quickly remove duplicate numbers?

Posted by: maki | Date: 2020-03-23 19:51 | IP: IP Logged

and how to use this script in PSPad?

[02,07,10,12,20,21,25,26].filter((v,i,s)=>s.indexOf(v)===i);

Edited 4 time(s). Last edit at 2020-03-23 19:53 by maki.

Options: Reply | Quote | Up ^


#4 Re: How to simple & quickly remove duplicate numbers?

Posted by: pspad | Date: 2020-03-23 20:11 | IP: IP Logged

What language is it?

Options: Reply | Quote | Up ^


#5 Re: How to simple & quickly remove duplicate numbers?

Posted by: maki | Date: 2020-03-23 20:13 | IP: IP Logged

JavaScript

Options: Reply | Quote | Up ^


#6 Re: How to simple & quickly remove duplicate numbers?

Posted by: maki | Date: 2020-03-25 06:56 | IP: IP Logged

With es6 syntax

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR