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: 6

Methods

filter(ds:DelimStr, pattern:Any)
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=':')
DelimStr constructor
init(ds:DelimStr, a:Arr, delim:Str=':')
DelimStr constructor
Str(ds:DelimStr)
Undocumented