1 definition by Richard Suchenwirth

Tool Command Language, 1988-today. A dynamic programming language for Mac/Unix/Windows computers. It can be considered as merging the heritages of Lisp, C, and Unix shells. With a very simple syntax Tcl makes it possible to implement a number of programming styles: functional, object-oriented, stack-oriented, etc.
proc lrevert list {#-- revert a list in Tcl
set res {}
set n llength $list
while {$n>0} {lappend res lindex $list incr n -1}
return $res
}
% lrevert {foo bar grill} ;# testing Tcl
grill bar foo
by Richard Suchenwirth September 13, 2006
Get the Tcl mug.