[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pattern matching: what does (= f pat) do?

From: Abhiseck Paira
Subject: Re: Pattern matching: what does (= f pat) do?
Date: Sat, 02 Jul 2022 21:41:51 +0530

> 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).


Abhiseck Paira
E34E 825B 979E EB9F 8505  F80E E93D 353B 7740 0709

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]