mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-11 17:24:29 +02:00
Added a dollar
This commit is contained in:
@@ -257,7 +257,7 @@ proc greet greeting\ name return\ \"Hello,\ \$name!
|
||||
proc fold {cmd args} {
|
||||
set res 0
|
||||
foreach arg $args {
|
||||
set res [cmd $res $arg]
|
||||
set res [$cmd $res $arg]
|
||||
}
|
||||
}
|
||||
fold ::tcl::mathop::* 5 3 3 ;# -> 45
|
||||
|
Reference in New Issue
Block a user