The lmap command will loop over each item (x) in the list (str) and if it
proc removeDuplicates {str} { set res "" lmap x $str { if {$x ni $res} {lappend res $x} } return $res}
Post a Comment
No comments:
Post a Comment