guile-user
[Top][All Lists]
Advanced

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

Re: comparator in match pattern


From: Vivien Kraus
Subject: Re: comparator in match pattern
Date: Wed, 28 Jun 2023 10:55:34 +0200
User-agent: Evolution 3.46.4

Hello!

Le mercredi 28 juin 2023 à 10:44 +0200, Damien Mattei a écrit :
> does it exists in Guile something like == in Racket,
> documented here:
> https://docs.racket-lang.org/reference/match.html#%28form._%28%28lib._racket%2Fmatch..rkt%29._~3d~3d%29%29

>From what I understand, (== something) would be translated as (? (cut
equal? <> something)) if you import srfi-26 for cut (or cute, if
something needs to be evaluated once).

Vivien



reply via email to

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