DelimStr type

EXPERIMENTAL. Delimited string. Showing ArrLike usage.

Example

DelimStr("/bin:/usr/bin:/usr/local/bin").without("/usr/bin").Str()  # "/bin:/usr/local/bin"

Direct parent types

ArrLike
Parent type for user-defined types with array-like behaviour. Use in cases when you would like to inherit from built-in Arr. Inheriting from built-ins is not possible for now.
Direct subtypes: 3

Methods

filter(ds:DelimStr, predicate:Any) Source: autoload/DelimStr.ngs:21
Get new DelimStr with some elements filtered out

Example

DelimStr("/bin:/usr/bin:/usr/local/bin").filter(/usr/).Str()  # "/usr/bin:/usr/local/bin"
init(ds:DelimStr, s:Str, delim:Str=':') Source: autoload/DelimStr.ngs:9
DelimStr constructor
init(ds:DelimStr, a:Arr, delim:Str=':') Source: autoload/DelimStr.ngs:15
DelimStr constructor
Str(ds:DelimStr) Source: autoload/DelimStr.ngs:31
Undocumented