Bill Allombert on Fri, 17 May 2024 20:45:41 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: apply / select are inconsistent on Maps
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: apply / select are inconsistent on Maps
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Fri, 17 May 2024 20:45:33 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1715971538; c=relaxed/relaxed; bh=NoKk3iyA/fypxLH5keA92KPCyrw+o33chggHDa5q9P8=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=DgYwhIpD2qZhkPVgDLjJjrvSs91Cjt88UFjZfJY9VYxf4B2bgUG/flQuSpUYuMXmgyamJe6kzCrCZEESHDscnWDX0146hfaVsXPeTyuPPJTkWBJFEhTZ28oZgTsqSic8C3IBcURcWzmyagCqPQd6X9nhJJemFOu37LugLktlfyFvNuUdNkQpn107k5h8v/QoV1Non6h0qVDiou57qt0vHAXjXRFCdKxBrGT25ugkXtPPiec4PqNZZqM+2RW+g4V2/GiPloeCB8vwQVzpG7EOjJrEXeIzoqhKw0cIRgkPgoCs0WGFKZiVdoj0+QejyzHWSfH7EyYRJPWGmN6XQvDaKU75k5uKHQu9Jl4mLL/2krRxMwM3aSy4XPbaf/+9hF+2U3+8Cf7H1zH8CWLvG/aeYdvvHX3fy4y7UbrKdYG/Ll6egcRFzGgBeWfTehKaEa0OxtkYzXXGa9FtqtI3YxIEE0ki5EFNlmy6wetZso6+y8WfmUw3R48MG0mXDq3mbsXGQQdJDwj/nHmSGToZleIEaZeb+dK4sMHwZYwNkrZIRvVNF5OsEvzldOgOne1A2z/J9tfhMKhEz1nC5dtbdF36FhHl/yka7eeKwCp2vXEyMid6DOB/7JAaOUitIdbXlUjKlkKiaBIBFskEhVhUBIFWF4UiQhlufOyuEUSsOp+/ic4=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1715971538; cv=none; b=y2BOFoUOcdF4kxpdxuG/4rf0g/SNx8j8SVggrGm73zqIGimXVcNui/F8dWAr9328NQtqUYf/pAw0LIQCdsfQNwXNVps1Xx0HSoLIL++rTY5sS9Kfb+ESnm1frcAbqjPIlHsW6+vplgJxBbtnpUOgDFYToc9N96WkNsiP/A+wW8I5YN8SmaOT0yxTwd7WICqnXldwtGU7PlLxM+AcIluva/7F1mB92/gz8vtUKxKj3iJlThIDUbvSShkK9r/GiMiHd9ferhbR/5wl8AiIThypLR0NSjvnORi61cu1UO1d4WNL7wW2F6N7ZyxTCp/e+FuiNptiux0pqCNkautlk7uN45T0NDmlPFnzWFT01M3one/LJeLWnvKhaKzx73v7PH7EaWLBpfHTnrwaC0D3zSi2Jzn2bzr90MW4W39EyPPT2mFfM1DlsGaMCaxtP42MIyIOu6bnQLrtPRSk9zA6MbKXzdLDUJOSsidRfDS6c8vCPH9W6+x/g7uoBoHa1ypiIU8064DH0Z7aFMHS5UeJlvhNSu9XlIkCtQrJGHVfcbbKtjxO2KTkPRjRftgraZKiRAE38LXS2oPOnttzSibJcIJQjsiPDYu0JuaukudRuwId0HAS7l9HATiLhxn5AqgsUD7ux9Bfmbl6v/xrYaO+vIP6WobqCsovsRhvbfJckqkq8+g=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Fri, 17 May 2024 20:45:41 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1715971538; bh=NoKk3iyA/fypxLH5keA92KPCyrw+o33chggHDa5q9P8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Qy8DRhOzpJ9jSUUwtRzZn4PsOKIBKiXmQRnAmf8rxgaAWZafc/G4lJ7wqZA7Aq6+Y pUXR0h3vd6fBgmzLKo2Pgg5PFJEXp1YswgwZ3hYnIfgDzIfeWDzZObN/Jb2aPKzevW vTklC/vDtb/rvMA9JwhnOXvA5gAWA5rgws7A5VLuJ7ISVfblW5xp6bFZbxVXjT8oYV 2N7eNqat9aJ+b4h1tgGC9jZRfC6LDSSPMaFNr/ae/Nhod7I71t3KARj5qehzn1ery2 7L689ta2GuD8B9ovSrpPghSwNSEPvh49tAaTWvnbOj4u7oyAni4L+xGFvMN3FlTapq 0t/mQHqRQvIOMiVKTmyz+1l32tgwD4aHBouOsybednw+L7qNVEd9QDW0N6Ff0sjZiQ ZE26mw2b2/3QGlmhTlbhKt7MDcQpoJSqs73BESc7rYj/cypp0czyT4Nw5vL8UT+Qh5 anKdH47JZz467IhFMFbYYzsmPXAYjdoByxHLUuX9Xm9ZryQJ/4t/6maK9yQf9PcjfT ELRsJWgc+rJkPG0O8egxkIQtlcQkPItsgMvbd/C71B+FNgli0t5ITnzSckUeTklInz B0u/U791DHgBb+VFbndYx+6ivUn1FphfLp766+ZgMqYo8y8o7EMshsc2hjjn0EvCL9 IiY887dtx4tzzYu5fvzrN1ic=
- In-reply-to: <CAJkPp5PqXaP8oSRETK7FUZm_jH7cMuTPvyChVAaS4V-3nXoGdA@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5O0RdYjvGdotU43A+jzHEkNziDr1SywNoyxrr40J7qNQw@mail.gmail.com> <ZjzrEESV1EkQ491B@math.u-bordeaux.fr> <CAJkPp5O2jGJKFiq=3cP+NMHV7cMmZQVB2YUHF38LsP5-og6sdw@mail.gmail.com> <Zjz8xz/Gg/fqpgxa@math.u-bordeaux.fr> <CAJkPp5PBrUmYz4d1hvTq19=gX_PzcRcHLHu1a0EYg=24NcroXA@mail.gmail.com> <Zj463bz4FDU0gpT2@seventeen> <CAJkPp5NPj7yN1W1uHKUsYAcrJ4T6D+xYcgEFXEcExWTiMHRLZQ@mail.gmail.com> <CAJkPp5MiaVHE_890JvXi6WPC5yjbwnwmZX2ZAWN9V70cAueqFg@mail.gmail.com> <CAJkPp5PqXaP8oSRETK7FUZm_jH7cMuTPvyChVAaS4V-3nXoGdA@mail.gmail.com>
On Fri, May 17, 2024 at 12:59:57PM -0400, Max Alekseyev wrote:
> A couple more requests along the same lines.
>
> Currently, parselect() / parapply() do not work on Lists (see example
> below) while regular select() / apply() do. Can it be fixed?
>
> Also, is it possible to have a combined (par)selectapply function that will
> select elements based on one function and apply another function to those
> selected? Something like:
>
> selectapply( selectfunction, applyfunction, container )
You should use [ applyfunction(x)|x<- container, selectfunction(x)]
Cheers,
Bill