Re: Parenthesis reduction

*To*: mathgroup at smc.vnet.net*Subject*: [mg126923] Re: Parenthesis reduction*From*: David Reiss <dbreiss at gmail.com>*Date*: Mon, 18 Jun 2012 05:42:43 -0400 (EDT)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*References*: <jrlfoa$c2s$1@smc.vnet.net>

The expression {a, b, c}, {d, e, f}, {g, h, i} is not syntactically correct in Mathematica. However, if you want to make use of these three lists as three separate arguments in a function, then you can use the somewhat specialized function "Sequence" by Apply-ing it to the original list (I.e., replace the Head of the list with Sequence). Assuming that the function that you want to provide three arguments to is called foo, then here is an example: foo[ Sequence@@{{a, b, c}, {d, e, f}, {g, h, i}}] gives foo[{a, b, c}, {d, e, f}, {g, h, i}] --David On Sunday, June 17, 2012 4:47:06 PM UTC-4, 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}} > ?