MathGroup Archive 2006

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

Search the Archive

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


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?