sci - Single Linked Cell List Iterator
Module Description
The sci module implements an iterator on the single linked cell list [scl].
Module Words
Iterator structure
sci%
( - n )
Get the required space for a sci data structure
Iterator creation, initialisation and destruction
sci-init
( w:scl w:sci - )
Initialise the iterator with a scl list
sci-create
( C: w:scl "name" - R: - w )
Create a named iterator in the dictionary
sci-new
( w:scl - w:sci )
Create an iterator on the heap
sci-free
( w:sci - )
Free iterator from heap
Member words
sci-get
( w:sci - w true | false )
Get the cell data from the current record
sci-set
( w w:sci - )
Set the cell data for the current record
Iterator words
sci-first
( w:sci - w true | false )
Move the iterator to the first record
sci-next
( w:sci - w true | false )
Move the iterator to the next record
sci-move
( w w:sci - f )
Move the iterator to the
record with the cell data
sci-first?
( w:sci - f )
Check if the iterator is on the first record
sci-last?
( w:sci - f )
Check if the iterator is on the last record
sci-insert-after
( w w:sci - )
Insert the cell data after the current record
Inspection
sci-dump
( w:sci - )
Dump the iterator
generated 09-Jan-2007 by
ofcfrth-0.2.0