RosettaCodeData/Task/Doubly-linked-list-Element-insertion/Tcl/doubly-linked-list-element-insertion-2.tcl
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

5 lines
159 B
Tcl

set B [List new 3]
set A [List new 1 $B]
set C [List new 2]
$A insertAfter $C
puts [format "{%d,%d,%d}" [$A value] [[$A next] value] [[[$A next] next] value]]