how to increment eacl element in a list?
eg: incrlist {1 2 3}
=>2 3 4
Submitted by: Administrator// it works like incrlist 5 6 7 =>> 6 7 8
proc incrlist args {
set s 0
foreach s $args {
incr s 1
puts $s
}
}
//for list
proc incrlist list {
set s 0
foreach s $list {
incr s 1
puts $s
}
}
Submitted by: Administrator
proc incrlist args {
set s 0
foreach s $args {
incr s 1
puts $s
}
}
//for list
proc incrlist list {
set s 0
foreach s $list {
incr s 1
puts $s
}
}
Submitted by: Administrator
Read Online TCL (Tool Command Language) Job Interview Questions And Answers
Top TCL (Tool Command Language) Questions
| ☺ | How to check whether a string is palindrome or not using TCL script? |
| ☺ | What is TCL? |
| ☺ | Where can we find the sample tcl programs? |
| ☺ | How do you find the length of a string without using string length command in TCL? |
| ☺ | How increment a character? For example, I give a and I should get b? |
Top Coding/Programming Categories
| ☺ | Python Interview Questions. |
| ☺ | OOP Interview Questions. |
| ☺ | Software engineering Interview Questions. |
| ☺ | PHP Interview Questions. |
| ☺ | VBA (Visual Basic for Applications) Interview Questions. |
