MTS 8: LISP and SLIP in MTS
June 1976
return the cell name of the Nth cell from the top and bottom,
respectively. If fewer than N cells are on the list, the counting is
circular. The Header is included in the count, but the first cell (N =
1) from the top is the top cell. Therefore, if the list contains M
cells, including the Header, we can obtain the cell name of the first
cell by writing either
MADHD = MADNTP(LST, M + 1)
or
MADHD = MADNBT(LST,M+1)
The datum, say an integer, can be retrieved from the Ith cell by
INT = INTGER(DATUM(MADNTP(LST,I)))
or
INT = IDATUM(MADNTP(LST,I))
HOW TO MAKE COMMENTS ON LISTS _____________________________
List Marks and Description Lists ________________________________
It is often necessary to attach additional information to lists. If
this information is restricted to designating four different classes of
lists, list marks are used. More extensive comments require Description
Lists.
The function
MRKLST(N,LST)
places the integer N(=0,1,2, or 3) as a List Mark for the list with
alias LST. The returned value of the function is the list name (in list
name format).
The function
MRKLSS(N,LST)
performs the same operation for a whole list structure. The returned
value is the list name (in list name format).
The function
LSTMRK(LST)
128 SLIP