unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Abhiseck Paira <abhiseckpaira@disroot.org>
To: vivien@planete-kraus.eu
Cc: guile-user@gnu.org
Subject: Re: Pattern matching: what does (= f pat) do?
Date: Sat, 02 Jul 2022 21:41:51 +0530	[thread overview]
Message-ID: <87y1xbcwel.fsf@disroot.org> (raw)
In-Reply-To: 871r712p4k.fsf@planete-kraus.eu

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

> Dear guile users,

> The pattern matching manual has a strange description for the (= f pat)
> pattern. It reads:

>     (= 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:

>     (= 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


-- 
Abhiseck Paira
E34E 825B 979E EB9F 8505  F80E E93D 353B 7740 0709
https://paira.in

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2022-07-02 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 16:11 Abhiseck Paira [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-08-10 17:20 Pattern matching: what does (= f pat) do? Vivien Kraus via General Guile related discussions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1xbcwel.fsf@disroot.org \
    --to=abhiseckpaira@disroot.org \
    --cc=guile-user@gnu.org \
    --cc=vivien@planete-kraus.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).