Tcl Source Code

View Ticket
Login
Ticket UUID: 3530003
Title: New option for "lsearch": "-boolean"
Type: RFE Version: None
Submitter: zoltan3 Created on: 2012-05-26 20:07:21
Subsystem: 17. Commands I-L Assigned To: dkf
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2013-11-19 09:38:13
Resolution: None Closed By: nobody
    Closed on:
Description:
There is no equivalent option of lsearch which filters as "if {$element} {return $index}", but it would be nice.
User Comments: dkf added on 2013-11-19 09:38:13: (text/html)
lmap! Not lamp! Stupid autocorrect…

dkf added on 2013-11-18 19:16:50: (text/html)
That's funny; I don't recall seeing this one before. For general filtering, I'd use <tt>lamp</tt> instead (since you can <tt>continue</tt> to skip an element).