MathGroup Archive 1998

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

Search the Archive

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



> From rossiale@cisco-ags.unive.it Fri Jan 30 13:40:16 1998
> Date: Fri, 30 Jan 1998 04:24:45 -0500
> From: rossiale@cisco-ags.unive.it (Alessandro Rossi)
To: mathgroup@smc.vnet.net
> To: mathgroup@smc.vnet.net
> Subject: [mg10764] [mg10710] [Q] How to get rid of {} in lists?
> 
> Hi all: that's my problem...it seems to me very easy but I caan get out
> of it with a solution:
> 
> I'd like to put the ordered elements of a list as parameters in a
> function...
> 
> e.g.
> 
> list={True, False};
> And[list] is not And[True, False]... how can I get rid of {} in order to
> perform the calculation???
> 
> thanks in advance
> 
> Alessandro
> 
Hi,

You must use Apply[And,{True,False}] or And @@ list

Hope that helps
  Jens



  • Prev by Date: Q: Contour integral
  • Next by Date: Re: polynomial coefficients in descending powers
  • Prev by thread: Re: [Q] How to get rid of {} in lists?
  • Next by thread: Re: Bug? Can suddenly not edit with LINUX Frontend