Doubly-linked list/Element definition: Difference between revisions
Content added Content deleted
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.) |
m (→{{header|REXX}}: moved comment box outside of program, elided OVERFLOW from the html PRE tag.) |
||
Line 656: | Line 656: | ||
<br> |
<br> |
||
However, linked lists can be simulated with lists in REXX. |
However, linked lists can be simulated with lists in REXX. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<lang rexx>/*REXX program that implements various List Manager functions. */ |
<lang rexx>/*REXX program that implements various List Manager functions. */ |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
call sy 'initializing the list.' ; call @init |
call sy 'initializing the list.' ; call @init |
||
call sy 'building list: Was it a cat I saw'; call @put 'Was it a cat I saw' |
call sy 'building list: Was it a cat I saw'; call @put 'Was it a cat I saw' |
||
Line 736: | Line 736: | ||
return</lang> |
return</lang> |
||
'''output''' |
'''output''' |
||
<pre style="height:30ex |
<pre style="height:30ex"> |
||
─── initializing the list. ─── |
─── initializing the list. ─── |
||