Re: TableForm vs. Slot
- To: mathgroup at smc.vnet.net
- Subject: [mg25772] Re: [mg25754] TableForm vs. Slot
- From: BobHanlon at aol.com
- Date: Sun, 22 Oct 2000 23:30:05 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 10/21/2000 3:37:59 PM, gorni at dimi.uniud.it writes: >Here is some (to me) surprising output: > >TableForm[{#}] gives StandardForm > >TableForm[{#2}] gives {Left, Baseline} > >TableForm[{#3}] gives DirectedInfinity[1] > >Guess what happens with TableForm[{#4}], TableForm[{#5}] ..., >or with MatrixForm[{{#}}], MatrixForm[{{# + 1}}] > >I wonder if there a way to show a list containing Slot >(*not* inside a Function) in a tabular format. > This may be what you want: TableForm[ Table[{"#" <> ToString[n], ToExpression["TableForm[{#" <> ToString[n] <> "}]"]}, {n, 5}], TableHeadings -> {None, StyleForm[#, FontWeight -> "Bold"] & /@ {"Slot", "Value(s)"}}] Bob Hanlon