Hi,
Sorting algorithms are not my strongpoint.
Is there a way to do something like this:
proc by_matching_elem {arr} {
upvar #0 $arr loc_arr
set s_list {}
foreach N [array names loc_arr c:/*] {
foreach X [array names loc_arr $loc_arr(*,file)] {
if {[string match $X $N]} {
lappend s_list "$N=[gtime $loc_arr($X)]"
#gtime is a function that returns an index
#derived value
}
}
}
return
}
Any help would be appreciated , a sample sort
that would produce an acceptable result would be better
TIA
M
Sorting algorithms are not my strongpoint.
Is there a way to do something like this:
proc by_matching_elem {arr} {
upvar #0 $arr loc_arr
set s_list {}
foreach N [array names loc_arr c:/*] {
foreach X [array names loc_arr $loc_arr(*,file)] {
if {[string match $X $N]} {
lappend s_list "$N=[gtime $loc_arr($X)]"
#gtime is a function that returns an index
#derived value
}
}
}
return
}
Any help would be appreciated , a sample sort
that would produce an acceptable result would be better
TIA
M