()))
>
>
>
> For example:
>
>
>
> (for/first (((a b c) (in-values (values 2 + 3)))) (b a c)) ; -> 5
>
>
>
> Thanks again, Jos
>
>
>
> *From: *Philip McGrath
> *Sent: *04 May 2020 17:21
> *To: *Jos Koot
> *Cc: *us...@racket-lang.org
&g
rg
Subject: Re: [racket-users] multiple-value version of in-value
My package `adjutor` has a few variants of this, like `in-value*`:
https://docs.racket-lang.org/adjutor/Stable.html#(part._.Sequence_.Constructors)
They can all be used as first-class procedures, but that does involve a little
runtim
Very nice. I have installed the package. Thanks very much,
Jos
From: Philip McGrath
Sent: 04 May 2020 17:21
To: Jos Koot
Cc: us...@racket-lang.org
Subject: Re: [racket-users] multiple-value version of in-value
My package `adjutor` has a few variants of this, like `in-value*`:
https
My package `adjutor` has a few variants of this, like `in-value*`:
https://docs.racket-lang.org/adjutor/Stable.html#(part._.Sequence_.Constructors)
They can all be used as first-class procedures, but that does involve a
little runtime overhead, so they use `define-sequence-syntax` to cooperate
dir
Recently I needed a multiple value version of in-value.
Does something like that exist already?
I could not find it, so I made one:
(define-syntax (in-values stx)
(syntax-case stx ()
((_ expr)
#'(make-do-sequence
(λ ()
(values
(λ (p) expr)
(λ (p) #f)
#t
(λ (p)
5 matches
Mail list logo