Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
proc fs {f s} {
|
||||
set r {}
|
||||
foreach n $s {
|
||||
lappend r [{*}$f $n]
|
||||
}
|
||||
return $r
|
||||
}
|
||||
proc f1 x {expr {$x * 2}}
|
||||
proc f2 x {expr {$x ** 2}}
|
||||
set fsf1 [partial fs f1]
|
||||
set fsf2 [partial fs f2]
|
||||
foreach s {{0 1 2 3} {2 4 6 8}} {
|
||||
puts "$s ==f1==> [$fsf1 $s]"
|
||||
puts "$s ==f2==> [$fsf2 $s]"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue