Sequence of feature idea

sequence of “type” currently supports the concatenation of two sequences by the Concat LINQ method. I think, it would make sense to also support the concatenation of a sequence and a single element of type “type” using the + sequence operator.
I know, this may result in very inefficient code, but in some cases it’s still useful.

So, the following is currently not possible without adding an iterator which returns one single value:

    var data: sequence of String := strings:Split(',').AsEnumerable + "dummy";

But the following code is valid:

    var xxx: sequence of String := getSomeData();
    var sourceFiles: sequence of String := value.Value.Files:Split(',').AsEnumerable + xxx;

Doesn’t + [“Dummy”] work ?

2 Likes

Sorry, yeah, I figured it out :slight_smile: