Subject: Re: bug#78656: [PATCH] Add new reduction primitives `fold-left' and `fold-right'

From: Eli Zaretskii <[email-masked]>
Date: Sun, 01 Jun 2025 08:47:21 +0300

> Date: Sat, 31 May 2025 22:35:20 -0400
> From:  Zach Shaftel via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> this patch adds left and right sequence reduction functions in C, along
> with tests for them. i don't know if this is the sort of thing the
> maintainers actually would want to merge, but i figured i would just
> submit it and hear your feedback. would also appreciate any stylistic
> feedback, for future patch submissions.

Thanks.

We already have seq-reduce, so fold-left seems to be unneeded?  As to
fold-right, couldn't we just add another function to seq.el?  Or are
there good reasons to have these implemented in C?