Class Line-Iterator

Part of:

package metabang.cl-containers

Default initargs

:delimiterp → (LAMBDA (CONTAINERS::CH) (OR (EQ CONTAINERS::CH #\Linefeed) (EQ CONTAINERS::CH #\Newline)))

Slot

cacheInitform:(make-array 20 element-type 'character fill-pointer 0 adjustable t); Reader:cache.
current-chunkReader:current-chunk.
delimiterpInitform:'whitespacep, Initargs:delimiterp; Accessors:delimiterp.
internal-iteratorReader:internal-iterator.
skip-empty-chunks?Initform:t, Initargs:skip-empty-chunks?; Accessors:skip-empty-chunks?.
testInitform:#'equal, Initargs:test.

Other Method

advance
best-itemReturns the item in items with the 'best' value of function where 'best' is determined by test. Y...
check-delimiter
collect-elementsReturns a possibly filtered and possibly transformed list of the elements in a container. If the ...
collect-elements-stably
collect-nodesReturns a possibly filtered and possibly transformed list of the nodes in a container. If the con...
count-elements
count-elements-if
current-element
current-element-p
delete-item-if
element
element-positionReturns the position of element in container using test and key to match. Key defaults to identit...
empty-pReturns t if there are no items in the container.
first-element
insert-new-itemAdds item to the container unless it is already there
insert-sequenceAdds each item in the sequence to the container in an upspecified order.
iteratable-pReturns true if thing knows how to iterate-nodes.
iterate-container
iterate-elements
iterate-nodesApplies function to each node in the container. If the container doesn't have nodes, then this is...
move
move-forward
move-p
next-element
nth-elementReturns the nth element in the container's 'natural' order.
print-containerPrints the contents of container (using PRINT). Returns the container.
reduce-container
reduce-elements
reduce-nodes
remove-items-ifRemoves items from a container that satisfy the test. The container is returned.
reset
search-for-element
search-for-itemHunt for the item in the container. Key and Test are as in member.
search-for-matchHunt for an item in the container that satisfies the predicate. Key is as in count-if.
search-for-matching-node
search-for-node
setffirst-element
unique-elements
unique-nodes