From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Abhiseck Paira Newsgroups: gmane.lisp.guile.user Subject: Re: Pattern matching: what does (= f pat) do? Date: Sat, 02 Jul 2022 21:41:51 +0530 Message-ID: <87y1xbcwel.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: vivien@planete-kraus.eu Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jul 02 19:22:50 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 1o7gpW-0008Ni-Lk for guile-user@m.gmane-mx.org; Sat, 02 Jul 2022 19:22:50 +0200 Original-Received: from localhost ([::1]:38666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7gpV-0007Un-KI for guile-user@m.gmane-mx.org; Sat, 02 Jul 2022 13:22:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7fyT-0001Cq-Is for guile-user@gnu.org; Sat, 02 Jul 2022 12:28:03 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:48252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7fyR-0002oD-Ga for guile-user@gnu.org; Sat, 02 Jul 2022 12:28:01 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F052645A26; Sat, 2 Jul 2022 18:27:55 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c3yKYI7ZICV6; Sat, 2 Jul 2022 18:27:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656779274; bh=4ROnirjdWZgDHulZy6Lx91KOQBNwGa2AZgm6Ab9qGRI=; h=From:To:Subject:In-Reply-To:Date:CC; b=kqM9Ie70TX00Qx+7R6nwsIACzxvZGy33Cp+YhN9BS0aoXjNFJU5LkWWS5HDSUUIZa XOF5i1aTQYKRMc5EvMJCopxfz3uOiNyLw8vUNdJZLN4Wf7tVdQVsknz1XiOdmpJWQ1 v3J9jGkEx3HJjca2rYhca8x2/eVyTpXe0JqQxQNOfTARUSyugnqhoF8aAPGAeCIv/G rxPFAuQ7DPYPbVlNmHoURMC0R0lmZK3uwe1XkTgBXm+RFU0Bh9wES9iOo9V9QOPEcm s0iAlYWzNggaBfJ1GpAscH0WiXewiwxGHh591CRdmkBOTDIn3AXtVfn2cph5ZiMR/6 BYApB1ep3RI2w== In-Reply-To: 871r712p4k.fsf@planete-kraus.eu Received-SPF: pass client-ip=178.21.23.139; envelope-from=abhiseckpaira@disroot.org; helo=knopi.disroot.org 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 02 Jul 2022 13:22:26 -0400 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:18383 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Dear guile users, > The pattern matching manual has a strange description for the (=3D f pat) > pattern. It reads: > (=3D field pat) a ``field'' of an object > However, the next example shows how you can apply a function in field > without having anything to do with a field of an object. > Based on the given example, and some experiments on my part, I think > that the description should be: > (=3D f pat) applies f, and matches pat in the result > Am I correct? > Vivien It seems your interpretation is correct! Thanks to your message I could figure out what this spec means as it didn't make much sense in the manual or in srfi-200 documentation[0] (The specification seems to have been copied verbatim from srfi-200). [0] https://srfi.schemers.org/srfi-200/srfi-200.html =2D-=20 Abhiseck Paira E34E 825B 979E EB9F 8505 F80E E93D 353B 7740 0709 https://paira.in --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE406CW5ee65+FBfgO6T01O3dABwkFAmLAcfcACgkQ6T01O3dA BwkF6BAAsNsUcolaEOxA8FwzP4Ch9fgOI+7xYG9KSOVb6Z+kMZQq1e5da0il9/u9 ga5VelVVaaMAdY7nfmr0A66lwg0PhzLSDb8a37dKdyAyBRf5ZHIcHnkhkr11biPM CcUNpxb5vqKf3kQwTMvUANJIBpcGPECGmyd6RX7k7veDa7bHfgSymOF+ZTMePq/D /LL5AeKn3fSMG3Qh8VQy4+MRgszr99MjkxeK+L2R8nwjtv/CDHtsfJa0V75DNDV7 yaXjiFCBTrkTMnAjmIfAUQK9pdAq6VAuss6LHUs+ujySKapEUdcuLxZOyN7xgM2B tLnlQ/21PlzloPVixHWZjRcWyCbnPA/HdYx7i5u4BWNuYwDuDnvEhOywh70cxWpI F+h4L7vZRt+oP+PeXAHYTyj32NnACkaNhJd+YpLrLHnOyPBuJwr/fLFuBJo6TuDZ ZAu/iHHuKq0VxK7APQOnSrHPSiajqXcw97ZDTTZek8GHI5m5q4mRHoavcC2/a28F FM8R2aGi9tEhR5yJVSi+RyqfogmTofRZBh7Z2++RwKnHFB2lZYDu8E20U39QDZct 9TWTQ44q6WGBJjLyOisEyddvDuAUPd4gXsdHOIGGjyWTdIt94e3kGx4Y+o+QuOqM LplAx8aAEwZxq6tEHt6MOk59PxV4d00xXfEwxpcnZaicSufhRbE= =cHrD -----END PGP SIGNATURE----- --=-=-=--