scl - Single Linked Cell List

Module Description

The scl module implements a single linked list that can store cell wide data.

Module Words

List structure

scl% ( - n )
Get the required space for the scl data structure

List creation, initialisation and destruction

scl-init ( w:scl - )
Initialise the scl-list

scl-create ( C: "name" - R: - w:scl )
Create a named scl-list in the dictionary

scl-new ( - w:scl )
Create a new scl-list on the heap

scl-delete-all ( w:scl - )
Delete all nodes in the list

scl-free ( w:scl - )
Free the list from the heap

Member words

scl-empty? ( w:scl - f )
Check for empty list

scl-length@ ( w:scl - u )
Get the number of nodes in the list

scl-compare! ( xt w:scl - )
Set the compare execution token for the sorting the list

scl-compare@ ( w:scl - xt )
Get the compare execution token for the sorting the list

List words

scl-append ( w w:scl - )
Append the cell in the list

scl-prepend ( w w:scl - )
Prepend the cell in the list

scl-set ( w n:index w:scl - )
Set the cell data in the indexth node in the list

scl-get ( n:index w:scl - w )
Get the cell data from the indexth node from the list

scl-insert ( w n:index w:scl - )
Insert cell data at the indexth node in the list

scl-delete ( n:index w:scl - w )
Delete the indexth node from the list

scl-remove ( w w:scl - f )
Remove the first occurence of the cell data from the list

Special words

scl-count ( w w:scl - u )
Count the occurences of cell data in the list

scl-execute ( ... xt w:scl - ... )
Execute xt for every cell data in list

scl-reverse ( w:scl - )
Reverse or mirror the list

Search words

scl-find ( w w:scl - n:index )
Find the first index for cell data in the list, -1 for not found

scl-has? ( w w:scl - f )
Check if the cell data is present in the list

Sort words

scl-insert-sorted ( w w:scl - )
Insert the cell data sorted in the list

Inspection

scl-dump ( w:scl - )
Dump the list


generated 09-Jan-2007 by ofcfrth-0.2.0