| 1 |
package json |
| 2 |
|
| 3 |
source helper.tcl |
| 4 |
# randomness verified by a die throw |
| 5 |
set ::rand 4 |
| 6 |
|
| 7 |
proc give::recursive::count {base p} { ; # 2 mandatory params |
| 8 |
while {$p > 0} { |
| 9 |
set result [expr $result * $base]; incr p -1 |
| 10 |
} |
| 11 |
return $result |
| 12 |
} |
| 13 |
|
| 14 |
set a 'a'; set b "bcdef"; set lst [list "item"] |
| 15 |
puts [llength $a$b] |
| 16 |
|
| 17 |
set ::my::tid($id) $::my::tid(def) |
| 18 |
lappend lst $arr($idx) $::my::arr($idx) $ar(key) |
| 19 |
lreplace ::my::tid($id) 4 4 |
| 20 |
puts $::rand ${::rand} ${::AWESOME::component::variable} |
| 21 |
|
| 22 |
puts "$x + $y is\t [expr $x + $y]" |
| 23 |
|
| 24 |
proc isprime x { |
| 25 |
expr {$x>1 && ![regexp {^(oo+?)\1+$} [string repeat o $x]]} |
| 26 |
} |