nj
Posted to
tcl
by Guest86 at Fri Dec 19 02:04:03 GMT 2025
view raw
proc
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[P
$L
$n
]\n"
}
Recent Posts
tcl by mookie
12 hours ago
tcl by mookie
14 hours ago
tcl by mookie
14 hours ago
tcl by schelte
2 days ago
tcl by oldlaptop
15 days ago
tcl by oldlaptop
18 days ago
tcl by mookie
18 days ago
tcl by Bradipo
21 days ago
tcl by oldlaptop
32 days ago
tcl by mookie
34 days ago
Submit
New paste
Documentation
From Jabber