Re: Passing a list as seperate parameters?
- To: mathgroup at smc.vnet.net
- Subject: [mg73245] Re: Passing a list as seperate parameters?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 8 Feb 2007 03:46:35 -0500 (EST)
- Organization: Uni Leipzig
- References: <eqc71p$qs7$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
Union [First[Transpose[{{a,b},{c,d}}]]]
will do it.
Regards
Jens
Azumanga wrote:
> I have a recuring problem in using mathematica, which I'm sure there
> must be a simple fix for, but I've looked through the manual and can't
> find it.
>
> As an example, I build up the list { {a,b},{c,d} }, and I want to find
> the union of it's elements.
>
> At first glance, I want Union. However, Union wants it's input as
> Union[{a,b},{c,d}], Union[{{a,b},{c,d}}] doesn't do anything.
>
> In general I get around this by fold, but it seems there should be a
> simpler method?
>
>