On Mon, Oct 08, 2018 at 08:50:09PM +0000, Mike wrote:
> > 
> > Is there a PicoLisp function similar to the Scheme 'foldl'?
> ...
> There is no foldl. This is too general and not required in core.
> What you intent to do ? 
> 
> Truly, I cant imagine when somebody needs it, because
> 
> (foldl cons '() '(1 2 3 4)) is (reverse)
> and
> (foldl + 0 '(1 2 3 4)) is (sum)

Right. And for a general case, you can do

   (let Res <initValue>
      (mapc '(@ (pass process-args 'Res))
         Lst1
         Lst2
         Lst3 )
      Res )

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to