Singly-linked list/Element definition: Difference between revisions
Content added Content deleted
m (→Examples) |
|||
Line 1,349: | Line 1,349: | ||
}</lang> |
}</lang> |
||
=== |
=== Return nth item === |
||
The function returns a pointer to the nth list item. If there are not enough elements, NULL is returned. |
|||
<lang stata>pointer(struct item scalar) scalar list_get(struct list scalar a, |
<lang stata>pointer(struct item scalar) scalar list_get(struct list scalar a, |