Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e7a4d3ec69344c6a4b0d945e467dad09fabb4115
Ticket: 219043ffffffffffffffffffffffffffffffffff
"lsearch -sorted" or similar command would be useful
User & Date: nobody on 2000-10-26 01:09:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4098 RFE
    Version: 8.3b2
    SubmitDate: '2000-01-27'
    LastModified: '2000-05-09'
    Severity: LOW
    Status: Released
    Submitter: ericm
    ChangedBy: ericm
    OS: All
    FixedDate: '2000-05-09'
    FixedInVersion: 8.4a1
    ClosedDate: '2000-10-25'
    
    
    It would be useful to be able to specify to lsearch that the list it is searching is sorted, so that it could use a more efficient search algorithm (binary search, for example).
    
    - eric
    
    
    
    It is probably not enough to simply add -sorted.  In order to make this work, lsearch would need additional information about the data:  what kind of data is it (string, int, double?); is it sorted in ascending or descending order; maybe others.  Perhaps lsearch can deduce this information from the data itself.
    
    - eric
    
    I have the work for this mostly done, I'm just waiting for 8.4 to put it back into CVS.
    
    - eric
    
    -- 03/31/2000 ericm
    
    Ensure that when multiple occurences of a particular string,
    that the first one is returned (should return same index as
    lsort unsorted). 
    -- 04/03/2000 hobbs
    
    Done and done.
    
    - eric
    
    -- 05/09/2000 ericm
    
    
    
  4. foundin changed to: "obsolete: 8.3b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "81. Bundled Packages"
  10. title changed to:
    "lsearch -sorted" or similar command would be useful
    
  11. type changed to: "RFE"