From: Donal K. Fellows on 19 Jan 2010 15:35 On 19/01/2010 12:18, cche wrote: > Somehow I had the idea that it would be sorted as integers if only > integers were present. > > Hmmm that confirms my suspicion... tip 131 is still not implemented! > maybe I should have tried > expr [rmmadwim([lsort $allelems])] > to see if I got what I wanted... ;-) Hah! Try out [lsort -dictionary], which comes close to reading your mind in a lot of cases... Donal.
From: Andreas Leitgeb on 19 Jan 2010 17:22 Donal K. Fellows <donal.k.fellows(a)manchester.ac.uk> wrote: > On 19/01/2010 12:18, cche wrote: >> Somehow I had the idea that it would be sorted as integers if only >> integers were present. >> Hmmm that confirms my suspicion... tip 131 is still not implemented! >> maybe I should have tried >> expr [rmmadwim([lsort $allelems])] >> to see if I got what I wanted... ;-) > Hah! Try out [lsort -dictionary], which comes close to reading your mind > in a lot of cases... One of the cases, where -dictionary fails, is with negative numbers, though. Given that, there is currently no way to lsort signed bigintegers, except for the general "do it yourself, but slow" -command. Has this already been discussed? Are negative numbers and numbers > 2G just too rarely together in a list to matter, or is a TIP overdue (even if it likely won't make it into 8.6)?
From: Donald G Porter on 19 Jan 2010 17:38 Andreas Leitgeb wrote: > Given that, there is currently no way to lsort signed bigintegers, except > for the general "do it yourself, but slow" -command. > > Has this already been discussed? Are negative numbers and numbers > 2G just > too rarely together in a list to matter, or is a TIP overdue (even if it > likely won't make it into 8.6)? Part of the overdue discussion to fill in TIP 297. DGP
First
|
Prev
|
Pages: 1 2 Prev: Tooltips for headers in TkTreectrl? Next: file stat and mode on Windows |