Singly-linked list/Element definition: Difference between revisions

Content deleted Content added
m spelling fix
m →‎{{header|Tcl}}: improve requirements
Line 507: Line 507:
While it is highly unusual to implement linked lists in Tcl, since the language has a built-in list type (that internally uses arrays of references), it is possible to simulate it with objects.
While it is highly unusual to implement linked lists in Tcl, since the language has a built-in list type (that internally uses arrays of references), it is possible to simulate it with objects.


{{Works with|Tcl|8.6}}
{{Works with|Tcl|8.6}} or {{libheader|TclOO}}
<lang tcl>oo::class create List {
<lang tcl>oo::class create List {
variable content next
variable content next