From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: adriano Newsgroups: gmane.lisp.guile.user Subject: Re: code review request Date: Sun, 27 Feb 2022 11:51:52 +0100 Message-ID: <1071fe5c8b31e3d5c77b5519ff05aa8df205a915.camel@riseup.net> References: <3cbcf4f1e624e54d6c4e459d9fc156ab9a5e6f31.camel@riseup.net> <87y21xlh4l.fsf@vijaymarupudi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18265"; mail-complaints-to="usenet@ciao.gmane.io" To: Vijay Marupudi , guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Feb 27 11:52:33 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOHAG-0004Vb-Ro for guile-user@m.gmane-mx.org; Sun, 27 Feb 2022 11:52:33 +0100 Original-Received: from localhost ([::1]:33084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOHAF-0008Ka-GS for guile-user@m.gmane-mx.org; Sun, 27 Feb 2022 05:52:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOH9n-0008JB-3d for guile-user@gnu.org; Sun, 27 Feb 2022 05:52:03 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:49150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOH9k-0002Cx-ST for guile-user@gnu.org; Sun, 27 Feb 2022 05:52:02 -0500 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4K60gx5SJnzDs8x; Sun, 27 Feb 2022 02:51:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1645959117; bh=Q58sEFNeC5fzjbsx84NhHkxizrkcNWoAOTwCAtl37xg=; h=Subject:From:To:Date:In-Reply-To:References:From; b=aFm3wGpyooa9r7VYzdq7VZQP9nMtKPqsE4F+AxsQvR3FdpdMKmvuY4w+e36A7WGPd 7IRJ1dCwgqjEHxHFW1Os4bqoiOmGbt0n5KvQdiUPic44rb1hTjJTNQr5Up4Jp0WMRW iY6/z27e+M31Ps+1Be/f/BpsY9y5nXDhnrMHoyJI= X-Riseup-User-ID: E23C3C91B3C3E9D65F8D15AAA16F567175FA3FD1D469589F9C99DCB4F338A7B4 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4K60gw5GYLz5vMN; Sun, 27 Feb 2022 02:51:56 -0800 (PST) In-Reply-To: <87y21xlh4l.fsf@vijaymarupudi.com> Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18148 Archived-At: Il giorno sab, 26/02/2022 alle 11.36 -0500, Vijay Marupudi ha scritto: > > I get a result I don't understand: this return 2 values > > Reading the source code, the second value is an implementation > detail, > keeping track of the visited directories. > > > One is expected, it's the one I wanted to produce > > Great! I would ignore the second value, because it is a by product of > the recursive implementation of file-system-fold, where it passes the > visited list to recursive invocations of itself. > > ~ Vijay Thank you The manual says: " Files and directories, as identified by their device/inode number pair, are traversed only once. " I assumed this meant this was kept track of internally, I didn't expect this to be part of what the procedure returns Thanks again