|
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.
When to use 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
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_String_stringToVector_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types string Target String or Text String or Text key The break string or character String Text Character true Optional. If present, treat the key argument as a collection of key characters,
if not present, treat the key argument as the key string. Boolean true Optional. If present along with the optional third argument, treat the key
argument as field delimiter such as in a tab delimited record string. Boolean
Returns:
Examples
Argument Types
String
Vector
Text
Character
How do I contact the AIS team?