MathGroup Archive 1997

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

Search the Archive

Re: Something like Flatten

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8598] Re: [mg8541] Something like Flatten
  • From: jpk at max.mpae.gwdg.de
  • Date: Tue, 9 Sep 1997 03:07:15 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

> From hans.steffani at e-technik.tu-chemnitz.de Sun Sep  7 12:16:04 1997
> Date: Sat, 6 Sep 1997 23:16:10 -0400
> From: hans.steffani at e-technik.tu-chemnitz.de (Hans Steffani)
To: mathgroup at smc.vnet.net
> To: mathgroup at smc.vnet.net
> Subject: [mg8598] [mg8541] Something like Flatten
> 
> I have a list of list of (list of one number). How can I get a 
> list of list of numbers? Flatten does not work as the outer but
> not the inner braces are deleted.
> 
> Hans Friedrich Steffani
> --
> Hans Friedrich Steffani
> Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz-Zwickau
> mailto:hans.steffani at e-technik.tu-chemnitz.de
> http://www.tu-chemnitz.de/~hfst/
> 
Hi Hans,

did You ever look at :

?Flatten

"Flatten[list] flattens out nested lists. Flatten[list, n] flattens to level \
n. Flatten[list, n, h] flattens subexpressions with head h."


?FlattenAt

"FlattenAt[list, n] flattens out a sublist that appears as the nth element of \
list. If n is negative, the position is counted from the end. FlattenAt[expr, \
{i, j, ... }] flattens out the part of expr at position {i, j, ... }. \
FlattenAt[expr, {{i1, j1, ... }, {i2, j2, ... }, ... }] flattens out parts of \
expr at several positions."

I don't know the structure  of Your list and the structure You want but
one of the functions may help

Jens


  • Prev by Date: Bottons and Notations
  • Next by Date: Re: MatchQ
  • Previous by thread: Something like Flatten
  • Next by thread: Re: Something like Flatten