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

MathGroup Archive 2007

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

Search the Archive

Re: Picking out pieces of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76012] Re: Picking out pieces of a list
  • From: CKWong <CKWong.P at gmail.com>
  • Date: Mon, 14 May 2007 05:54:40 -0400 (EDT)
  • References: <f26nc2$42l$1@smc.vnet.net>

I don't know if this qualifies as "tighter", but it doesn't require
the function m.

Table[ Flatten[{lst[[i]], Reverse[lst[[Mod[i + 1, Length@lst, 1]]]]},
1], {i, Length@lst}] //TableForm



  • Prev by Date: Re: Plus sets in mathematica..?
  • Next by Date: Re: Converting Binary form to a desired array
  • Previous by thread: Re: Picking out pieces of a list
  • Next by thread: Re: Re: Picking out pieces of a list