1 | One can define a linked list as: |
2 |
TYPE ENTRY
|
3 | END TYPE ENTRY |
4 | ALLOCATE Creates dynamically elements in a linked list |
5 | CURRENT = ENTRY( NEW_VALUE, NEW_INDEX, FIRST) |
6 | FIRST => CURRENT |
7 | adds a new entry at start of linked list and renames it with POINTER FIRST |