guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: combinators: Recurse fold2 to named let loop.


From: guix-commits
Subject: branch master updated: combinators: Recurse fold2 to named let loop.
Date: Mon, 01 Jun 2020 08:55:25 -0400

This is an automated email from the git hooks/post-receive script.

niedzejkob pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 7a99c58  combinators: Recurse fold2 to named let loop.
7a99c58 is described below

commit 7a99c58c4597a550703f32018efafb0fe84d5c72
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Mon Jun 1 05:41:13 2020 +0530

    combinators: Recurse fold2 to named let loop.
    
    * guix/combinators.scm (fold2): Recurse to named let loop, not fold2 itself.
    
    Signed-off-by: Jakub Kądziołka <kuba@kadziolka.net>
---
 guix/combinators.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/combinators.scm b/guix/combinators.scm
index 11cad62..4707b59 100644
--- a/guix/combinators.scm
+++ b/guix/combinators.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès 
<ludo@gnu.org>
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -56,7 +57,7 @@
            (call-with-values
                (lambda () (proc (car lst1) (car lst2) result1 result2))
              (lambda (result1 result2)
-               (fold2 proc result1 result2 (cdr lst1) (cdr lst2)))))))))
+               (loop result1 result2 (cdr lst1) (cdr lst2)))))))))
 
 (define (fold-tree proc init children roots)
   "Call (PROC NODE RESULT) for each node in the tree that is reachable from



reply via email to

[Prev in Thread] Current Thread [Next in Thread]