MathGroup Archive 2012

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

Search the Archive

Re: Parenthesis reduction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126935] Re: Parenthesis reduction
  • From: Gerry Flanagan <gvflan at midcoast.com>
  • Date: Mon, 18 Jun 2012 05:46:52 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201206170759.DAA08898@smc.vnet.net>

{a, b, c}, {d, e, f}, {g, h, i} would not be a valid Mathematica expression, it needs some sort of Head (container). What you probably mean is something like,
Apply[f,{{a, b, c}, {d, e, f}, {g, h, i}}] or equivalently
f@@ {{a, b, c}, {d, e, f}, {g, h, i}} where f is some function name.

The Apply replaces the top level List head with another Head of your choice.
Gerry F.



On 6/17/2012 3:59 AM, Mat' G. wrote:
> Which command should one use to get
> 	{a, b, c}, {d, e, f}, {g, h, i}
> from
> 	{{a, b, c}, {d, e, f}, {g, h, i}}
> ?
>
>
>




  • Prev by Date: Re: Parenthesis reduction
  • Next by Date: Re: Parenthesis reduction
  • Previous by thread: Re: Parenthesis reduction
  • Next by thread: Re: Parenthesis reduction