Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: Something like Flatten

  • To: mathgroup at
  • Subject: [mg8598] Re: [mg8541] Something like Flatten
  • From: jpk at
  • Date: Tue, 9 Sep 1997 03:07:15 -0400
  • Sender: owner-wri-mathgroup at

> From hans.steffani at Sun Sep  7 12:16:04 1997
> Date: Sat, 6 Sep 1997 23:16:10 -0400
> From: hans.steffani at (Hans Steffani)
To: mathgroup at
> To: mathgroup at
> 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
Hi Hans,

did You ever look at :


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


"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


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