mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-15 05:35:59 +00:00
Update tcl.html.markdown (#2640)
Fixed fold example to return actual result instead of the word "res"
This commit is contained in:
parent
05e4c41cb3
commit
c65e45121a
@ -268,7 +268,7 @@ proc fold {cmd args} {
|
|||||||
foreach arg $args {
|
foreach arg $args {
|
||||||
set res [$cmd $res $arg]
|
set res [$cmd $res $arg]
|
||||||
}
|
}
|
||||||
return res
|
return $res
|
||||||
}
|
}
|
||||||
fold ::tcl::mathop::* 5 3 3 ;# -> 45
|
fold ::tcl::mathop::* 5 3 3 ;# -> 45
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user