       Re: Understanding Flatten

• To: mathgroup at smc.vnet.net
• Subject: [mg46319] Re: Understanding Flatten
• From: drbob at bigfoot.com (Bobby R. Treat)
• Date: Sat, 14 Feb 2004 04:37:54 -0500 (EST)
• References: <c0k52g\$8pd\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```>>I don't see why adding {g, f[e, g]} as a second list to...

That's not the only difference between the two Flatten statements.

Bobby

Harold.Noffke at wpafb.af.mil (Harold Noffke) wrote in message news:<c0k52g\$8pd\$1 at smc.vnet.net>...
> Mathematica 5.0.1 on Windows 2000
> MathGroup:
>
> In my study of Flatten, the Mathematica Book gives this example ...
>
> 	You can use Flatten to "splice" sequences of elements into lists
> 	or other expressions.
>
> 	In:= Flatten[ {a, f[b, c], f[a, b, d]}, 1, f ]
>
> 	Out= {a,b,c,a,b,d}
>
> I modified In as follows ...
>
> 	In:= Flatten[ { {a, f[b, c], f[a, b, d]}, {g, f[e, g]} }]
>
> 	Out= {a, f[b, c], f[a, b, d], g, f[e, g]}
>
> I don't see why adding {g, f[e, g]} as a second list to the In example
> unflattens Flatten's answer.  What am I misunderstanding?
>
> Thanks.
> Harold

```

• Prev by Date: Re: C Code
• Next by Date: Re: Re: how to explain this weird effect? Integrate
• Previous by thread: Re: Understanding Flatten
• Next by thread: RE: Understanding Flatten