From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: SXML example showing diff between node-reduce and node-join Date: Mon, 11 Jan 2021 23:07:22 +0100 Message-ID: <20210111220722.GB20711@tuxteam.de> References: <2d53b553-c061-21c8-fef2-5dfb8a68bdfe@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Jan 11 23:07:51 2021 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 1kz5Lq-0000ND-5y for guile-user@m.gmane-mx.org; Mon, 11 Jan 2021 23:07:50 +0100 Original-Received: from localhost ([::1]:36654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz5Lp-0001vC-0p for guile-user@m.gmane-mx.org; Mon, 11 Jan 2021 17:07:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz5LZ-0001uU-9w for guile-user@gnu.org; Mon, 11 Jan 2021 17:07:33 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:53640) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kz5LR-0005VR-8q for guile-user@gnu.org; Mon, 11 Jan 2021 17:07:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=tQ1exJ1txrZsTa20Wrl00XXZjb4YVB1G8w7DUmX/r9Q=; b=KaOiQtnkCjGAzUUOJaTxIu421J93pgibXR8V1QIVO7avyYRGNWToj/GNy432lwOTiMCiCmQqFcjeJieLTPXGCku7IOs6TYT+x3r81OR9hh7CdzJ2c8UUOqV3I5S0oC8lij3Ow/Z7eDSTtiCYD3eH0bAySCi2CoRZAZxwYI+vNr+JD4Rep1jzA2CI15LjsPDj/KLxCCdf0w4rBQQg1xR+knaxGVAPlRPm12RFpzZhTN03py8Kq7KQefeGnR3E0xZinDCehPzRd/hXiKhO6i0MuZInnOcDfONNyX2wiMY6N87eF6ZUAgb/ioV1G27m4/dTeMHxZdaGnPr4+5NwLnW4bw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kz5LO-0006qP-DY; Mon, 11 Jan 2021 23:07:22 +0100 Content-Disposition: inline In-Reply-To: <2d53b553-c061-21c8-fef2-5dfb8a68bdfe@gmail.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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:17176 Archived-At: --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 11, 2021 at 05:44:41AM -0800, Matt Wette wrote: > Hi All, >=20 > I'm going through the (sxml xpath) low-level routines to try to get a > solid understanding of what they do. I just can't come up with an example > to show how node-reduce and node-join differ. If someone could provide > such an example I would really appreciate it. Takers? >=20 > My end goal is to write up a cookbook type note to show peeps how to use = it. OK, I'll bite. But slowly. I'm not sure I'll reach to the end, but have always been curious wrt the more interesting parts of SX... CAVEAT: the word "combinator" alone makes my head spin. I know what it is, when I read the definition slowly. But reading code written in this style is still a bit challenging. So it's quite possible that someone else beats me to it. That's fine -- I'll eagerly learn from her/his answers :) For a start, I'm reading [1], where Oleg Kiselyov and Kirill Lisovski actually show some usage examples for both of the above functions. Next, I'll actually try to play with them. Might take me a couple of days. (After having no customers for a while, a couple of them arrived at the same time. They always do, sigh, but I still love them ;-) Cheers [1] http://okmij.org/ftp/papers/SXs-talk.pdf - t --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/8zBoACgkQBcgs9XrR2kZ2iACcDmYnrZm7MQRYjw3YnJA24YxK 4dQAn1sUi9/f+6DW7HZxjVOnYsXYwl1E =jgzC -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--