emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#20375: closed (doc. error in v 2.0.11, Section 7.6


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20375: closed (doc. error in v 2.0.11, Section 7.6.2.5)
Date: Thu, 23 Jun 2016 20:08:02 +0000

Your message dated Thu, 23 Jun 2016 22:07:26 +0200
with message-id <address@hidden>
and subject line Re: bug#20375: doc. error in v 2.0.11, Section 7.6.2.5
has caused the debbugs.gnu.org bug report #20375,
regarding doc. error in v 2.0.11, Section 7.6.2.5
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20375: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20375
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: doc. error in v 2.0.11, Section 7.6.2.5 Date: Sun, 19 Apr 2015 19:20:57 -0700
The reference manual for guile 2.0.11 has an error in  Section 7.6.2.5 on rnrs 
lists.  The statement "identical to the fold ..." is not quite correct.  The 
section says:

fold-left combine nil list1 list2 . . . [Scheme Procedure] fold-right combine 
nil list1 list2 . . . [Scheme Procedure] These procedures are identical to the 
fold and fold-right procedures provided by SRFI-1. See Section 7.5.3.5 [SRFI-1 
Fold and Map], page 556, for documentation. 


In section 7.5.3.5, the manual says:
(fold cons ’() ’(1 2 3)) [...] (3 2 1)


But, fold-left does not work like fold: the arguments to the procedure to 
fold-left are reversed with respect to fold:.

 guile i2.0.11correctly gives the following:

(fold-left cons '() '(1 2 3)) => (((() . 1) . 2) . 3)

(fold-left xcons '() '(1 2 3)) => (3 2 1)


 Matt





--- End Message ---
--- Begin Message --- Subject: Re: bug#20375: doc. error in v 2.0.11, Section 7.6.2.5 Date: Thu, 23 Jun 2016 22:07:26 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
On Mon 20 Apr 2015 04:20, Matt Wette <address@hidden> writes:

> The reference manual for guile 2.0.11 has an error in Section 7.6.2.5
> on rnrs lists.  The statement "identical to the fold ..." is not quite
> correct.  The section says:
>
> fold-left combine nil list1 list2 . . . [Scheme Procedure] fold-right
> combine nil list1 list2 . . . [Scheme Procedure] These procedures are
> identical to the fold and fold-right procedures provided by
> SRFI-1. See Section 7.5.3.5 [SRFI-1 Fold and Map], page 556, for
> documentation.
>
>
> In section 7.5.3.5, the manual says:
> (fold cons ’() ’(1 2 3)) [...] (3 2 1)
>
>
> But, fold-left does not work like fold: the arguments to the procedure to 
> fold-left are reversed with respect to fold:.
>
>  guile i2.0.11correctly gives the following:
>
> (fold-left cons '() '(1 2 3)) => (((() . 1) . 2) . 3)
>
> (fold-left xcons '() '(1 2 3)) => (3 2 1)

Gah, you're right.  What a mess.  Fixed in master, will backport
soonish.

Andy


--- End Message ---

reply via email to

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