Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: [Q] How to get rid of {} ???



Alessandro Rossi wrote:

> Hi everyone again...
> I'm just curious to ask if is it possible to get rid of the {} simbols
> in a plain list of this kind {a1, a2, a3, ..., an} when you want to use
> the ordered sequence of a1, a2, a3, ..., an as arguments for a
> function.
>
> If I have the following list:
> list={True, False, True}
>
> how can I computethe And Function of the three arguments of list:
>
> And[True, False, True]
>
> obviously
>
> And[list]
>
> doesn't work...

Try And[Sequence@@list]. This Replaces the head List of {True, False,
True}, which is internally represented by List[True, False, True] by
Sequence.

Hope this helps
Reinhold

____________________________________________________________________
Reinhold Kainhofer  | e-mail: reinhold.kainhofer@kfunigraz.ac.at
Strassoldog. 4/3/17 | http://www.cryogen.com/rk 8010 Graz, Austria  |
http://www.geocities.com/Athens/9145




  • Prev by Date: Re: Linguistics Graphs
  • Next by Date: Re: 3D histograms?
  • Prev by thread: Re: [Q] How to get rid of {} ???
  • Next by thread: MathLink questions