TABLE OF CONTENTS
::pwtk::parseRangeStringNotIn
SYNOPSIS
proc ::pwtk::parseRangeStringNotIn {rangeString lastIndex} {
PURPOSE
Return the indices not included in [::pwtk::parseRangeString $rangeString $lastIndex].
ARGUMENTS
- rangeString -- rangeString to parse (i.e. expands)
- lastIndex -- the largest index (used for "all" and "number-" forms)
SOURCE
set ran [::pwtk::parseRangeString $rangeString $lastIndex] set result {} for {set i 1} {$i <= $lastIndex} {incr i} { if { $i ni $ran } { lappend result $i } } return $result }