Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg5393] How can I Flatten from the inside out, not the outside
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg5393] How can I Flatten from the inside out, not the outside
Posted: Dec 6, 1996 11:45 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

welter@texoma.com (Jason Welter)
How can I Flatten from the inside out, not the outside in?
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.40>

4}}}
>
> How do I remove the "{{" and "}}" characters?


Jason:

Map[Flatten, { {{{a,b}},{{c,d}}}, {{{p,q}},{{r,s}}} }]

{{a, b, c, d}, {p, q, r, s}}

Allan Hayes
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk








Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.