Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: subtle dumb question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55616] Re: subtle dumb question
  • From: bghiggins at ucdavis.edu
  • Date: Thu, 31 Mar 2005 01:24:16 -0500 (EST)
  • References: <d2dooc$lm7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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