.
D 2003-06-01T17:17:57
J assignee nijtmans
J cmimetype text/plain
J comment improve\slsearch\sby\sadding\sa\s\s-command\stclcmd\soption\s\nto\ssearch\slist\sitems\susing\sthe\ssame\sfunction\sas\slsort\n\ne.g.\n\s\sset\sL\s[lsort\s-command\sCompareVector\s$L]\n\s\sset\sX\s[lsearch\s-sorted\s-command\sCompareVector\s$L]\n\nalso\ssome\sgrouping\swould\sbe\sgreat:\nthink\syou\shave\sa\slist\swith\severy\s4\sitems\sbelong\sto\sa\s\ngroup\sand\syou\swanna\ssort\sit\sby\sthe\sthird\sitem:\ne.g.\s\nset\sL\s{\sa0\sa1\sa2\sa3\s\sb0\sb1\sb2\sb3\s\sc0\sc1\sc2\sc3\s..\s}\n\nto\ssort\susing\slsort\syou\shave\sto\smake\sa\slist\sof\slists\sby\n\s\sset\sL2\s{}\n\s\sforeach\s{a\sb\sc\sd}\s{\slappend\sL2\s[list\s$a\s$b\s$c\s$d]\s}\n\s\sset\sL2\s[lsort\s-index\s2\s$L2]\n\s\sset\sL\s[concat\s$L2]\n\na\sfaster\sapproach\swith\sthe\snonexisting\s-group\soption\n\s\sset\sL\s[lsort\s-group\s4\s-index\s2\s$L]\n\nsearching\ssuch\slists\sis\srequired\sthan\sas\swell\sso\n\s\slsearch\s-group\s4\s-index\s2\s$L\s\sc2\n\nwill\sreturn\s2\sthe\sgroup\snumber\s(my\sfavourite,\sor\s10\sas\sthe\s\nreal\sindex,\sor\s8\sas\sthe\sfirst\smember\sof\sthe\sgroup)\n\nsuch\sgrouped\slists\sare\svery\sgeneral\sin\smy\sopinion,\s\nbecause\sregexp,array\sget,split\sare\sfunctions\sthat\smay\s\nreturn\ssuch\slists\n\nfinally\sa\squick\s\s\s"lreverse\slist"\scommand\swould\sbe\sa\snice\s\nidea.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem
J title lsearch\s-command\stclcmd\s-group\sgrpsize,\s\slsort\s-group\sgrpsiz
J type Support
K 747083ffffffffffffffffffffffffffffffffff
U nobody
Z 38579ab177cb510bd9459acbf9300c0b