..
Posted to
tcl
by Guest86 at Fri Dec 19 01:28:23 GMT 2025
view raw
set
P \
{L\ n {
expr
{
$n
?[
$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
junk by bcharder
2 days ago
tcl by egavilan
11 days ago
tcl by Stu
13 days ago
tcl by Stu
13 days ago
tcl by oldlaptop
46 days ago
tcl by oldlaptop
46 days ago
tcl by Molnija Bjornsson
52 days ago
tcl by Molnija Bjornsson
52 days ago
tcl by zmoment
52 days ago
tcl by zmoment
52 days ago
Submit
New paste
Documentation
From Jabber