Abridged summary of comp.lang.tcl@googlegroups.com - 7 updates in 3 topics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Abridged summary of comp.lang.tcl@googlegroups.com - 7 updates in 3 topics

comp.lang.tcl mailing list
Alexandru <[hidden email]>: Jun 29 02:15AM -0700

Hi,
 
As far as I know there is no standard command in Tcl for this.
 
So what would be the fastest way in Tcl to sort a list for two criteria?
 
For example I have the list:
 
set l {1 a 2 a 1 c ...more
Andreas Leitgeb <[hidden email]>: Jun 29 09:30AM

> set l {1 a 2 a 1 c 1 b 3 b 4 c}
> I want to sort first the integers and then the letters. So the sorted list looks like this:
> 1 a 1 b 1 c 2 a 3 b 4 c
 
try this:
set l [lsort -stride 2 ...more
Alexandru <[hidden email]>: Jun 29 03:35AM -0700

> > 1 a 1 b 1 c 2 a 3 b 4 c
 
> try this:
> set l [lsort -stride 2 [lsort -stride 2 -index 1 $l]]
 
Hi Andreas,
 
your solution works perfectly and I'm pretty convinced, this is also the fastest ...more
Alexandru <[hidden email]>: Jun 29 01:50AM -0700

Hi Erik,
 
thank you for your help.
 
My CA is Verisign. After reading the information at the link you sent me, I downloaded the root certificate from the Verisign website ...more
Alexandru <[hidden email]>: Jun 29 01:56AM -0700

Hi Erik,
 
thank you for your help.
 
My CA is Verisign. After reading the information at the link you sent me, I downloaded the root certificate from the Verisign website ...more
Andreas Leitgeb <[hidden email]>: Jun 28 08:44PM

Thanks for answering and providing further information!
 
> allowable index for insertion, which is the largest index at end of
> the previous line. There is intentional code for doing this (see ...more
Andreas Leitgeb <[hidden email]>: Jun 28 09:15PM


> So, what remains is hope that perhaps a comment be added to the text-docs,
> hinting users that end-1char is more likely the mark they want for "deletion
> to the end" than end itself.
...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to [hidden email].