MathGroup Archive 1991

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

Search the Archive

Re: unmap or remove header command


>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[ ]