Methods

splitΒΆ

split(s:Str, delim:Str)

Split string by substring
Source: stdlib.ngs:2362

Returns

Arr of Str

Example

":a:bc:d:".split(":")   # ["", "a", "bc", "d", ""]
":a:bc:d:".split("bc")  # [":a:", ":d:"]