TCL - sgml/signature GitHub Wiki
For Powershell Users
Recursion
Powershell
function Invoke-Factorial {
param (
[int]$n
)
if ($n -le 1) {
return 1
} else {
$prev = Invoke-Factorial ($n - 1)
return ($n * $prev)
}
}
# Example usage
Write-Output (Invoke-Factorial 5) # Output: 120
TCL
proc factorial {n} {
if {$n <= 1} {
return 1
} else {
set prev [factorial [expr {$n - 1}]]
return [expr {$n * $prev}]
}
}
puts [factorial 5] ;# Output: 120
FAQs
https://www.tutorialspoint.com/tcl-tk/tcl_packages.htm
https://tcl.tk/man/tcl8.5/tutorial/Tcl31.html
https://www3.rocketsoftware.com/rocketd3/support/documentation/d3nt/91/refman/tcl/tcl_commands.htm
https://wiki.tcl-lang.org/page/What+is+Tcl
https://www.magicsplat.com/articles/oo.html
https://github.com/tcltk/tcloo
https://www.slideshare.net/activestate/tcl-86features
https://wiki.tcl-lang.org/page/The+major+new+features+of+Tcl%2FTk+8.6
http://incrtcl.sourceforge.net/itcl/FAQ.html
tcllib
http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/rest/rest.html
https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/nettool/nettool.html
https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/markdown/markdown.html
https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/valtype/isbn.html
https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/base64/base64.html
https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/cron/cron.html
http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/http/autoproxy.html
http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/cmdline/cmdline.html
HTTPD
https://tcl.tk/software/tclhttpd/
Routers
https://www.androwish.org/index.html/raw/3de97eab9a70cc0cc00e4085c0e16f07379f72c1
UX
https://www.activestate.com/blog/enthusiastic-tcl-users/
Hello World
https://en.wikibooks.org/wiki/Tcl_Programming/Examples
https://en.wikibooks.org/wiki/Tcl_Programming/regexp
https://www.activestate.com/blog/concurreny-tcl-weaving-threads/