Re: [racket-users] multiple-value version of in-value

2020-05-04 Thread Philip McGrath
())) > > > > 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

RE: [racket-users] multiple-value version of in-value

2020-05-04 Thread Jos Koot
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

RE: [racket-users] multiple-value version of in-value

2020-05-04 Thread Jos Koot
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

Re: [racket-users] multiple-value version of in-value

2020-05-04 Thread Philip McGrath
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

[racket-users] multiple-value version of in-value

2020-05-04 Thread Jos Koot
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)