MathGroup Archive 2012

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

Search the Archive

Re: Parenthesis reduction


Hi,

> Which command should one use to get
> 	{a, b, c}, {d, e, f}, {g, h, i}

stricktly speaking this is not a valid mathematica expression, so it 
can't be done. But...

> from
> 	{{a, b, c}, {d, e, f}, {g, h, i}}
> ?

... you most probably want Sequence, which will create something that 
you can pass to a function:


arglist = {{a, b, c}, {d, e, f}, {g, h, i}}

argseq = Sequence@@arglist;

f[argseq]

of course you can also directly "Apply" (@@ is the shortcut for "Apply") 
the function to the list of arguments:

f@@aglist

hth,

albert



  • Prev by Date: Re: Export points 3D plots
  • Next by Date: Re: Parenthesis reduction
  • Previous by thread: Re: Parenthesis reduction
  • Next by thread: Re: Parenthesis reduction