Re: Parenthesis reduction
- To: mathgroup at smc.vnet.net
- Subject: [mg126928] Re: Parenthesis reduction
- From: awnl <awnl at gmx-topmail.de>
- Date: Mon, 18 Jun 2012 05:44:27 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jrlfoa$c2s$1@smc.vnet.net>
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