Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Removing brakets of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48288] Removing brakets of a list
  • From: scohen at cable.net.co (Sebastian Cohen S)
  • Date: Fri, 21 May 2004 03:54:35 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello everyone in the group,

I need to know a way to remove the outer brakets that encapsulate a
list generated by the Table function.

i.e:

Flatten[Table[Subscript[x, i, j], 
   {i, 1, 4}, {j, 1, 4}]]

Generates:

{Subscript[x, 1, 1], Subscript[x, 1, 2], <<12>>   Subscript[x, 4, 3], 
  Subscript[x, 4, 4]}

And I need a function that flattens the output completely removing the
outer brakets like giving the following as an output:

Subscript[x, 1, 1], Subscript[x, 1, 2], <<12>>   Subscript[x, 4, 3], 
  Subscript[x, 4, 4]

Has anyone done it? or know how to do it?

Thanks in advance for any help you may provide,

Sebastian Cohen S


  • Prev by Date: Re: proof of formula for log(-t) found in Mathematica?
  • Next by Date: Home Page of Marek Rychlik--> Mathematica creations
  • Previous by thread: Re: Any Tucker-3 public domain, GNU GPL or similar implemenation?
  • Next by thread: Re: Removing brakets of a list