Simplistic closure for Bradipo
Posted to
tcl
by kbk at Tue Jul 28 20:48:58 GMT 2015
view raw
proc
gensym {} {
variable
i
return
\#g[
incr
i]
}
proc
makeTimes {a} {
set
p [gensym]
proc
$p
[
list
b [
list
a
$a
]] {
expr
{
$a
*
$b
}}
return
$p
}
set
double [makeTimes 2]
puts
[
$double
3]
Recent Posts
tcl by egavilan
2 hours ago
tcl by bch
6 days ago
tcl by Bradipo
6 days ago
tcl by aspect
6 days ago
tcl by Bradipo
6 days ago
tcl by Bradipo
6 days ago
tcl by Bradipo
6 days ago
lilypond by Bradipo
7 days ago
tcl by cgm
17 days ago
tcl by dandyn
26 days ago
Submit
New paste
Documentation
From Jabber