default.txt 605 B

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