Re: How can I Flatten from the inside out, not the outside in?
- To: mathgroup at smc.vnet.net
- Subject: [mg5442] Re: How can I Flatten from the inside out, not the outside in?
- From: hibbarda at central.edu (Al Hibbard)
- Date: Sat, 7 Dec 1996 00:26:17 -0500
- Organization: Central College, Iowa
- Sender: owner-wri-mathgroup at wolfram.com
In article <57usmq$3cb at dragonfly.wolfram.com>, welter at texoma.com (Jason Welter) writes: >Here is the first of 699 elements of a list I want to >Flatten: > >{{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}} > >How do I remove the "{{" and "}}" characters? > >Jason > > If g = {{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}} then Flatten[g] will remove ALL of the inner {{ and }} and so the pairs will be lost. Presuming that you want to preserve the pairs, use Flatten[g,1]. Al Hibbard