Bill Allombert on Wed, 04 Dec 2024 16:03:12 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: setunion() on a vector of sets
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: setunion() on a vector of sets
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Wed, 4 Dec 2024 16:01:55 +0100
- Delivery-date: Wed, 04 Dec 2024 16:03:12 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1733324590; bh=aOmGrgiMGZX6fOS3OJyIafhQoocJgfHiKQ3p4hzIo/E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=DbO6jIgCdi7Q6B0Fi/0YUoCy00yru3wiCoqbqwa+uX2Z86urMn8a3NoP68G47ZOJd bSmCAGd6iKH0D7wZ1UtwWUpxKhAMipSYvHUBb2Nh94J3yvHs8aN1TVCvL9kq75WvKc 7oqrHlBweZsWBwWEB8MFfYKyVgcvYKY2HhGR+U4pCcOvziA5CgjctyNrnj5h/L5Dkc 6RvRrWIGRund0QZbrQXAg+rY0UIZigoF/tZplGOE/mn9MVvDGVVXsw+M01/MS/yfh5 wqrbBV7eThnbxFaAStjelT7ow+cZ2k61szrbszU0g0fJBuu3MxSAgbSc62Cx+ZBmkG j07PMBDQ94s0FqexLfJq54fgG3hEDAY9FoXU8+utV7WXQshNuUysfR+dVfoqdujsXz QJDBzAIgi9FzIPUE3DMqK9LAyzpcM+6/tZNwfUK014f5xx6Pd6oFgzIPrLqLyzZ/at quWCFg9U336VgCKwywUgK8jovI4DBDZMjzB4t14Z1UUf9bcrZILG1M2JOMclfyrYB8 ksdYoksyAectcfeLPtwbvf6XdOcmFBp9xl/vbYq7ZwqmR4Tb1AgWjTySGtiE8nXTnq 3z5tsnq23EwLiSNiiGnleDOuiw2ITGcUI3aaBd9xCsQ6SaTjWqo+iL2Ak1+5H+Nwah VU7LJ0u8hF/PDD/juKVE8ayw=
- In-reply-to: <CAJkPp5PMh7rQxkOEwVAaq6q6EesjETx2H=bZ1e_MA65AcvRWow@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5PMh7rQxkOEwVAaq6q6EesjETx2H=bZ1e_MA65AcvRWow@mail.gmail.com>
On Wed, Dec 04, 2024 at 09:50:39AM -0500, Max Alekseyev wrote:
> Can setunion() be extended to support a vector of arguments, like gcd() and
> other functions?
You can use fold:
? fold(setunion,[[1,2,3],[2,3,4],[4,5,6]])
%2 = [1,2,3,4,5,6]
Cheers,
Bill.