Max Alekseyev on Thu, 17 Oct 2013 00:57:19 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp/pari version of the "Map" datatype and "reduce" function
|
- To: Richard Heylen <richardheylen@gmail.com>
- Subject: Re: gp/pari version of the "Map" datatype and "reduce" function
- From: Max Alekseyev <maxale@gmail.com>
- Date: Wed, 16 Oct 2013 18:57:08 -0400
- Cc: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Delivery-date: Thu, 17 Oct 2013 00:57:19 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5YU7XmjcF2zq1XqQO9R9PRqHZk3ByyD2PENI6Z7wTHk=; b=MGB0dOQAOS71rgcKqwLDzRp8lRu2bNRpnVsRm9/aeUxP73ni7NhVJVXE1VgoJLORBw /el8vEXtc+PaxE+5tzz85lYfzBCPA8vBDMvEz89ssivhOxRxbTjpcSOfH3mqXGI2paUj oLBMpCiqTs9EuhAQKdyFdRbNFWp5O06SqW94w8Hm1hAzYDB6SDpr3MA0l4mdgCxz9cP2 baDwAOPdNNX6d0UsyFoAwjUTISaJIY7a6jczzH2miVPD5bXAe+bhtI4P8ppkCV1VJqn6 XFBGsd5H7nfgEPwXNVV8WqVHMV/nbZqIXkvdUt7EV9ebs+COOWncsQGHkZl8tFc7O7qL mYuw==
- In-reply-to: <CAGeO=y28ziR_rer=zxJAqYY=+_xh_WRLQWL+gyDHJJ5XT46zDQ@mail.gmail.com>
- References: <CAGeO=y28ziR_rer=zxJAqYY=+_xh_WRLQWL+gyDHJJ5XT46zDQ@mail.gmail.com>
On Wed, Oct 16, 2013 at 6:32 PM, Richard Heylen <richardheylen@gmail.com> wrote:
> I can achieve something similar at the moment using a combination of a
> Set to hold the keys and a Vector for the values, using setsearch to
> find the index for the vector but it's not nice.
I have similar implementation, the only difference is that I use lists
(since they can grow/shrink dynamically) instead of vectors.
I can easily share if anybody is interested.
Regards,
Max