This method is faster - but it doesn't do exactly the same thing. If
the idea is simply to have unique values in each line, then this is
the way to go. The method I suggested simply removes repeating lines,
and would be more suitable if one were trying to record changes in a
stream of values.
Best,
Mark
On 9 Aug 2006, at 15:51, Jim Ault wrote:
On 8/9/06 6:36 AM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:
This will do the same thing.
The idea is to use Rev's array features such that keys are
automatically
unique and can be as long as you wish.
This means that you could remove duplicate lines of any length.
get listOfAnything
filter it without empty --just in case
repeat for each line LNN in it
put 1 into tempArr[LNN]
end repeat
get the keys of tempArr
sort it numeric --in your case for numbers
answer it
Jim Ault
Las Vegas
On 8/9/06 6:36 AM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:
Hi,
I have a list like:
1
1
1
2
2
3
4
4
4
And I need all double lines removed from this list so it becomes:
1
2
3
4
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution