Is there a standard library function or built-in construct for concatenating two sequences in JavaFX?
The Sequences.concatenate () function is listed here , but it is not visible anywhere in the official API .
Of course, each sequence can be sorted out by inserting values into a new sequence, for example:
function concatenate(seqA: Object[], seqB: Object[]) : Object[] {
for(b in seqB) insert b into seqA;
seqA;
}
.. but, of course, something basic, like concatenation, is already defined for us somewhere ..
source
share