Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1991
*January
*February
*March
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1991

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: unmap or remove header command

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: unmap or remove header command
  • From: "Lawrence M. Seiford, IEOR, UMass, (413) 545-1658." <SEIFORD at ecs.umass.edu>
  • Date: Tue, 20 Aug 1991 09:17 -0500

>If you have a coordinate set lst={{1,1,1},{1,2,3},...,{0,2,3}} you can map:
>
>        Map[Point,lst]
>to get a list of points:
>
>        {Point[{1,1,1}],Point[{1,2,3}],...,Point[{0,2,3}]}
>
>What is the command to reverse the map operation? That is, how can you
>remove a header and retrieve just coordinates?

Solution is to use Apply with the Identity as in

mapped=Map[Point,lst]

unmapped=Apply[Identity,mapped,{1}]

larry






  • Prev by Date: Mma 2.0 slower than 1.0?
  • Next by Date: Strange behavior from Compile[ ]
  • Previous by thread: Mma 2.0 slower than 1.0?
  • Next by thread: Strange behavior from Compile[ ]