MathGroup Archive 2006

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

Search the Archive

Re: How to remove just the outermost braces of a list?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69926] Re: How to remove just the outermost braces of a list?
  • From: "Blackadder" <Malte at t-online.de>
  • Date: Wed, 27 Sep 2006 06:05:51 -0400 (EDT)
  • References: <efarmd$7vg$1@smc.vnet.net>

Hi,

if the only thing you want to accomplish is remove the outer braces for
textual output, this will do:

e = {a, {b}}
Print[StringTake[stre = ToString[e], {2, Length[stre] - 2}]]

Best regards,
  Malte


  • Prev by Date: C-formatted strings back to Expressions
  • Next by Date: mapping of function
  • Previous by thread: Re: How to remove just the outermost braces of a list?
  • Next by thread: Re: How to remove just the outermost braces of a list?