From: Donal K. F. <don...@ma...> - 2009-07-16 15:08:59
|
Donald Arseneau wrote: > Fredderic <mag...@gm...> writes: >> that matches the entire item group, as in the present case of searching >> sub-lists with a regular string match. > > Good question as to whether that is the "present case"! I would edit the TIP > myself to specify otherwise, but maybe Donal's intention was to search > entire sublists! I don't think so because lsort uses the first (zeroth) > element of each group or the one given by -index; never the whole group. It does? Then we should do the same here. I'm *strongly* in favour of [lsort] and [lsearch] having as closely matching -stride semantics as possible. (If they're different, people will hate us and rightly so...) Donal. |