How to make a list of lists in one list F #

I have a list of lists

LL = [[1;2;3];[4;5;6];[7;8;9]]

And I would like it to look like

LSimple= [1;2;3;4;5;6;7;8;9]

It's as simple as I can ask, but maybe rewriting helps. How can I parse these list lists and create a simple list out of it?

+4
source share
1 answer
List.concat LL 

Will do what you want. Family X.concat function combines any sequence with one set of X X, where X can be List, Array, Seqor even a Stringwith a predetermined separator.

+4
source

All Articles