MathGroup Archive 2007

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

Search the Archive

Re: Picking out pieces of a list


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