matrix --> list

Hello,

I ask how to make a list from matrix?

I have this:

first={{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}}

I need this

{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}

Thank you :slight_smile:

Since first has one element in it, (which happens to be a list also), then

  First@first

should work. You can also try Flatten@first

Thank you :slight_smile:

For more generality please see Flatten[] function, and similar ones.