On Tue, Oct 09, 2018 at 09:19:29PM +0200, Jakob Eriksson wrote:
> Add foldl to standard library?

I would not recommend that.

It is quite inefficient, as it needs to build a new list of all arguments on
each call:

   (conc (rest) (cons I))

and it has no advantage over a direct inline expression of what it does IMHO.
Often it is contra-productive to over-abstract things.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe

Reply via email to