stringToVector
|
The stringToVector function separates a String {string} into several
substrings using the key {key} as the separator. The key is not included
in the result substring. All of the result substrings are collected to form a
Vector and the Vector is returned. The stringToVector has an optional third
argument {true}, which, if present, will treat the {key} argument as
a collection of keys rather than a single key or pattern. In other words if
{true} is present, any character in the {key} will cause a substring
break. The stringToVector has an optional fourth argument {true},
which, if present along with the optional third argument, will treat the
{key} argument as a field delimiter such as in a tab delimited record string.
Usage The stringToVector function's ability to separate a String into several
substrings makes the function ideally suitable for tokenizing a String. Afterwards,
each substring in the Object Vector, can be processed as tokens.
(stringToBVector string key) (stringToBVector string key true) (stringToBVector string key true true) (stringToBVector text key ) (stringToBVector text key true) (stringToBVector text key true true) Returns a Vector
Expression:
Arguments
Name
Type
Description Argument: string String or Text
Target String or Text Argument: key String Text Character
The break string or character Argument: true Boolean
Optional. If present, treat the key argument as a collection of key characters,
if not present, treat the key argument as the key string. Argument: true Boolean
Optional. If present along with the optional third argument, treat the key
argument as field delimiter such as in a tab delimited record string.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
String | Vector | Text | Character |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|