Lines Matching full:list

8   # Add the each entry to a list if and only if they do not already exist in the list.
11 …# args The first argument should be the list name. All other arguments…
12 # items to be added to the list.
15 # Remove first entry from args list.
18 upvar 1 $list_name list
20 if { ! [info exists list] } { set list {} }
23 if { [lsearch -exact $list "${arg}"] != -1 } { continue }
24 lappend list $arg
33 # Remove any entry from the main list that is contained in removal list.
36 # main_list_name The name of your master list.
37 # removal_list The list of items to be removed from master list.
39 …# For each element in the removal list, find the corresponding entry in the master list and remove…
50 proc list_map { list expression } {
52 # Create and return a new list where each element of the new list is a result of running the given
53 # expression on the corresponding entry from the original list.
56 # list A list to be operated on.
57 …# expression A command expression to be run on each element in the list (e.g.…
60 foreach x $list {
70 proc list_filter { list expression } {
72 …# Create and return a new list consisting of all elements of the original list that do NOT pass the
76 # list A list to be operated on.
77 …# expression A command expression to be run on each element in the list (e.g.…
83 foreach x $list {
94 proc list_filter_comments { list } { argument
96 # Filter comments from list and return new_list as a result.
99 # list A list to be operated on.
103 set new_list [list_filter $list "regexp -expanded {$comment_regexp} \$x"]
168 # Read properties files and return key/value pairs as a list.
205 set properties [list]
207 # Read the entire file into a list, filtering comments out.
268 …# convert_commands A list of custom commands that indicate the type of conversion(s…
273 …# upper or lower is included in convert_commands list, the prefix …
318 set target_arr_ref [list]