* Pattern matching: what does (= f pat) do?
@ 2021-08-10 17:20 Vivien Kraus via General Guile related discussions
0 siblings, 0 replies; only message in thread
From: Vivien Kraus via General Guile related discussions @ 2021-08-10 17:20 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-10 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 17:20 Pattern matching: what does (= f pat) do? Vivien Kraus via General Guile related discussions
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 NNTP newsgroup(s).