But for 'min'/'max', the 'map' paradigm is not very suitable. The appropriate way is to use 'reduce'.
Can I commit my original patch? On Sat, Jun 23, 2018 at 12:09 AM, Waldek Hebisch <[email protected]> wrote: > oldk1331 wrote: >> >> fix documentation and use a simpler implementation > > Documentation parts is obvious (OK). Concerning implementation > my idea is to eventually have map1 exported (probably as 'map'). > Trying to do this caused problems with overload resolution, > so for now it is local. However, I hope to work out this > and export this. Such 'map' is a general way to implement > various iterations over aggregates. From this point of > view it is more important than 'max' and 'min'. Of course > if all you want is 'max' and 'min', than your implementation > is simpler. However, I wrote 'max' and 'min' using 'map1' > because I feel that this way is better for future modifications. > -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
