Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
for {set i 1; set end 10} true {incr i} {
|
||||
puts -nonewline $i
|
||||
if {$i >= $end} break
|
||||
puts -nonewline ", "
|
||||
}
|
||||
puts ""
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
proc range {from to} {
|
||||
set result {}
|
||||
for {set i $from} {$i <= $to} {incr i} {
|
||||
lappend result $i
|
||||
}
|
||||
return $i
|
||||
}
|
||||
|
||||
puts [join [range 1 10] ", "] ;# ==> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
|
||||
Loading…
Add table
Add a link
Reference in a new issue