Evaluator Array Functions - Open Discussion

I was about to suggest this

str = " This   is a collection  of words  separated by   spaces. ";
sep = " ";

str = Trim(str);
str = RegExS(str, sep + "+", sep);

Output(str);

arr = ArrayCreate();
tmp = "";

for (i = 0; i < len(str); i++) {
    c = Mid(str, i, 1);

    if (c == sep) {
        Output(tmp);
        ArrayPush(arr, tmp);
        tmp = "";
    }
    else {
        tmp += c;
    }
}

ArrayPush(arr, tmp);

Output(arr);

But we have a problem.

So we'll need to wait a bit, or kindly ask for a Split() function.

Both, actually :slight_smile: