searchableList
🌌searchableList
searchableList -- a list whose elements inherit from hasEquals
In contrast to searchablelist, this uses ref type 'list' and not choice
type 'list', so it is more flexible.
create a list from this Sequence.
redefines Sequence.asList:
create a list from this Sequence.
A list is immutable, so it can be reused and shared between threads.
Compared to a stream, a list may require more (heap) allocation.
Default implementation uses asStream. Heirs must redefine at least
one of asList or asStream.
get the number of non-overlapping matches of l within this
get the number of matches of l
get the index of l within this list or nil if it does not exist
determine the index of element x within this list. 0 if x is at the
head of the list, 1 if it comes directly after head, etc. nil if x is
not in the list.
replace all occurances of f by r
does this list start with l?