Overview
| Artifact ID: | 109002bbf4bae2def921cfabbfc78a248ed0e365 |
|---|---|
| Ticket: | 684433ffffffffffffffffffffffffffffffffff
lsearch multiple pattern matching |
| User & Date: | nobody on 2003-02-11 07:51:51 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The glob command can accept many pattern arguments but the lsearch do not. As it is often interesting to search lists for several elements, this feature could be powerful: lsearch ?switches? list pattern ?pattern...? This syntax is totally compatible with the current lsearch command. It would provide a smart replacement for: set newList {} foreach pattern patternList { set result [lsearch ?switches? $list $pattern] set newList [concat $newList $pattern] } It would then be possible to easily find the common elements of 2 lists: eval lsearch -all -inline [list $list1] $list2 or to delete list elements that are already in the second list: eval lsearch -all -not -inline [list $list1] $list2 JM. Philippe - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "17. Commands I-L"
- title changed to: "lsearch multiple pattern matching"
- type changed to: "RFE"