From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#20375: doc. error in v 2.0.11, Section 7.6.2.5 Date: Thu, 23 Jun 2016 22:07:26 +0200 Message-ID: <87mvmblldt.fsf@pobox.com> References: <89A136F3-5E08-4BC7-BC7A-9021B65598ED@alumni.caltech.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466712508 15575 80.91.229.3 (23 Jun 2016 20:08:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 20:08:28 +0000 (UTC) Cc: 20375-done@debbugs.gnu.org To: Matt Wette Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jun 23 22:08:19 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGAvA-0000xc-KP for guile-bugs@m.gmane.org; Thu, 23 Jun 2016 22:08:16 +0200 Original-Received: from localhost ([::1]:39098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAv9-0005jo-5l for guile-bugs@m.gmane.org; Thu, 23 Jun 2016 16:08:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAv1-0005iR-0T for bug-guile@gnu.org; Thu, 23 Jun 2016 16:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGAuw-0000Dx-PM for bug-guile@gnu.org; Thu, 23 Jun 2016 16:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAuw-0000Dq-Lb for bug-guile@gnu.org; Thu, 23 Jun 2016 16:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGAuw-0005P8-IM for bug-guile@gnu.org; Thu, 23 Jun 2016 16:08:02 -0400 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Thu, 23 Jun 2016 20:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20375 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 20375@debbugs.gnu.org, wingo@pobox.com, mwette@alumni.caltech.edu Original-Received: via spool by 20375-done@debbugs.gnu.org id=D20375.146671246020734 (code D ref 20375); Thu, 23 Jun 2016 20:08:02 +0000 Original-Received: (at 20375-done) by debbugs.gnu.org; 23 Jun 2016 20:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:53017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGAuZ-0005OL-LR for submit@debbugs.gnu.org; Thu, 23 Jun 2016 16:07:39 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:63992 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGAuX-0005OE-VN for 20375-done@debbugs.gnu.org; Thu, 23 Jun 2016 16:07:38 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id B96B62455C; Thu, 23 Jun 2016 16:07:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=Sp+ZcLlAjrmG 94+puTNap7MOuos=; b=L1h3SntblBwUNYsvW1OvsAeJdDULyvtpMj10cANoBpdH bLx4vDrQUAq0PXFLqb49t5A0NzFDh0nVUP4Kwfarn1XXd4xKcENm5NkeSueF3Y7C zpdL82XUyymeZPMGWok34xDX+il1+AYt/xALjJM4X2e7rpWjl3eeTHh5RCLoS5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=PH+xOC irxiawetP6WHrlMpujlV54DaXEbebQQKa96WrlVRtjPShD8EzRzMwBPg+j0l7xHA GWq8KpubCZL9OEeE2FmjJXqYfZt96HTCq3vNAyELP5GfMXbmKiorM4FynJpBk8rM hDLbjJGkTGPpCbKpak2+W7ui0NDo+kq/tThtY= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id B2A2624557; Thu, 23 Jun 2016 16:07:36 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 9A61224556; Thu, 23 Jun 2016 16:07:35 -0400 (EDT) In-Reply-To: <89A136F3-5E08-4BC7-BC7A-9021B65598ED@alumni.caltech.edu> (Matt Wette's message of "Sun, 19 Apr 2015 19:20:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 20CD3D44-397E-11E6-8614-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8184 Archived-At: On Mon 20 Apr 2015 04:20, Matt Wette 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 =E2=80=99() =E2=80=99(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)) =3D> (((() . 1) . 2) . 3) > > (fold-left xcons '() '(1 2 3)) =3D> (3 2 1) Gah, you're right. What a mess. Fixed in master, will backport soonish. Andy