Jump to content

Singly-linked list/Element insertion: Difference between revisions

→‎{{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<<]"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.