MathGroup Archive 2005

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

Search the Archive

Re: subtle dumb question


Chris,
Use  patterns like this

 myblah = {{1, {2,
    3, 4}}, {5, {6, 7, 8}}, {9, {10, 11, 12}}, {13, {14, 15, 16}}};

myblah/.{x_,{_,y_,_}}->{x,y}

{{1,3},{5,7},{9,11},{13,15}}

Cheers,

Brian


  • Prev by Date: Re: Need a functional process for this.
  • Next by Date: .NET/Link: closing the kernel window
  • Previous by thread: Re: subtle dumb question
  • Next by thread: Re: subtle dumb question