Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

searchablelist

searchablelist

searchablelist -- a list whose elements inherit from hasEquals

In contrast to searchable_sequence, this uses choice type 'list' and not ref
type 'Sequence', so it is more efficient.
create a list from this searchablelist.

redefines:

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
replace all occurrences of old by new
replace the first n occurrences of old by new
tail recursive helper for the replace features
does this list start with l?