StringParser.split() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
separator
No
parse_part?
Yes

Returns

{string|StringParser|StringParser[]|any[]}

Description

Create multiple strings divided by the specified separator and return them in an array. Parts of the string can be parsed after separating them and returned as {StringParser} if specified as such or by the specified function, which will be provided each string part as its only argument. The value of this parser will be set to a string part for the duration of each execution only. If the separator is not present, a single unseparated string is returned or {self} if the parsing was specified as {StringParser}.

⚠️ **GitHub.com Fallback** ⚠️