All pastes #166832 Raw Edit

Something

public text v1 · immutable
·published 2006-09-11 11:03 UTC
rendered paste body
     for {set i 0} {$i < [llength $signals]} {incr i} {
         set signal [lindex $signals $i]
#check the signal
         if {$signal == something} {
              lreplace $signals $i $i
          } 
}



set idx -1
		foreach val $list {
		   incr idx
		   if {"$val is to be removed"} {
		      set list [lreplace $list $idx $idx]
		      incr idx -1
		   }
		}