RE: How to remove just the outermost braces of a list?
- To: mathgroup at smc.vnet.net
- Subject: [mg69906] RE: [mg69876] How to remove just the outermost braces of a list?
- From: "Ingolf Dahl" <ingolf.dahl at telia.com>
- Date: Wed, 27 Sep 2006 06:04:33 -0400 (EDT)
- Reply-to: <ingolf.dahl at telia.com>
Maybe Print[StringTake[ToString[e], {2, -2}]] ? Best regards Ingolf Dahl Sweden -----Original Message----- From: Nasser Abbasi [mailto:nma at 12000.org] To: mathgroup at smc.vnet.net Subject: [mg69906] [mg69876] How to remove just the outermost braces of a list? hello I thought this will be easy, but I can't seem to find an easy way to do the following. e={a,{b}} Print[e] ------> This will print {a,{b}} What can I do to make it print a,{b} ? Flatten does not do it. TableForm came close, but it removes all braces, not just the outermost. Many times I get a list as a result which I want to print, but I do not want the outermost braces to be displayed as well. I want to display just the content of the list. thanks, Nasser