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