Variable-length argument lists:
proc sum args {         set s 0         foreach i $args {                      incr s $i                      }         return $s         }  sum 1 2 3 4 5        15 sum         0
| Previous slide | Next slide | Back to the index | View Graphic Version | 
No notes for slide 14