...
Posted to
tcl
by Guest86 at Fri Dec 19 01:58:33 GMT 2025
view raw
set
P \
{L\ n {
expr
{
$n
?[apply
$P
[lmap i
$L
{
incr
t
$i
}] [
expr
$n
-1]]:
$L
}}}
lmap L\ n {
{-3 4 7 -1 15} 1
{-3 4 7 -1 15} 3
} {
puts
"\[
$L
\]
$n
:\n[apply
$P
$L
$n
]\n"
}
Recent Posts
tcl by apn
4 days ago
tcl by arjen
19 days ago
tcl by cgm
28 days ago
tcl by cgm
28 days ago
tcl by alan
35 days ago
tcl by mookie
57 days ago
tcl by mookie
57 days ago
tcl by mookie
57 days ago
tcl by schelte
59 days ago
tcl by oldlaptop
71 days ago
Submit
New paste
Documentation
From Jabber