Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10525
| From | David Reiss <dbreiss@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Parenthesis reduction |
| Date | 2012-06-18 09:43 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jrmt8v$h2d$1@smc.vnet.net> (permalink) |
| 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}}
> ?
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Parenthesis reduction "Mat' G\." <ellocomateo@free.fr> - 2012-06-17 20:47 +0000
Re: Parenthesis reduction awnl <awnl@gmx-topmail.de> - 2012-06-18 09:46 +0000
Re: Parenthesis reduction Yves Klett <yves.klett@googlemail.com> - 2012-06-18 09:48 +0000
Re: Parenthesis reduction "Nasser M. Abbasi" <nma@12000.org> - 2012-06-19 07:14 +0000
Re: Parenthesis reduction John Doty <noqsiaerospace@gmail.com> - 2012-06-20 07:52 +0000
Re: Parenthesis reduction David Bailey <dave@removedbailey.co.uk> - 2012-06-18 09:49 +0000
Re: Parenthesis reduction David Reiss <dbreiss@gmail.com> - 2012-06-18 09:43 +0000
Re: Parenthesis reduction "Nasser M. Abbasi" <nma@12000.org> - 2012-06-18 09:44 +0000
csiph-web