Singly-linked list/Element definition: Difference between revisions
Singly-linked list/Element definition (view source)
Revision as of 01:18, 18 March 2011
, 13 years ago→{{header|Fantom}}: and the default successor is 'null'
m (edited Fantom example to allow 'null' successor) |
m (→{{header|Fantom}}: and the default successor is 'null') |
||
Line 144:
Node? successor // allow successor to change, also, can be 'null', for end of list
new make (Int value, Node? successor := null)
{
this.value = value
|