Re: Help with formatting output
- To: mathgroup at smc.vnet.net
- Subject: [mg77729] Re: Help with formatting output
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Fri, 15 Jun 2007 04:47:47 -0400 (EDT)
On 6/14/07 at 5:22 AM, diana.mecum at gmail.com (Diana) wrote: >I would like to format: >{35,36,2,4,5} as >1 35 2 36 2 2 3 4 5 5 >1 35 >2 36 >2 2 >3 4 >5 5 >I have a list, such as {35,36,2,4,5}, and want two-column output, >where the first column is the position n the list, and the second >column is the actual list. I want just a space between the columns. One way to do this in Mathematica would be: TableForm[MapIndexed[Join[#2, {#1}]&, {35, 36, 2, 4, 5}], TableAlignments -> Left] -- To reply via email subtract one hundred and four