Anonymous user
Singly-linked list/Element insertion: Difference between revisions
Singly-linked list/Element insertion (view source)
Revision as of 12:34, 12 June 2012
, 12 years ago→{{header|ooRexx}}: Add example for ooRexx
No edit summary |
(→{{header|ooRexx}}: Add example for ooRexx) |
||
Line 676:
| [] -> raise Not_found</lang>
=={{header|ooRexx}}==
Extending [[Singly-Linked_List_(element)#ooRexx]]
<lang ooRexx>
::method insert
expose next
use strict newNode
newNode~next = next
next = newNode
</lang>
=={{header|Pascal}}==
Note: This code uses only Standard Pascal features. For code using features only available in modern Pascal versions, see above under "[Delphi / Object Pascal / >>Turbo Pascal<<]"
|