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

Hope this helps

Reinhold Kainhofer  | e-mail:
Strassoldog. 4/3/17 | 8010 Graz, Austria  |

  • 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