Thanks. I'm currently running 6.12, so this may be what convinces me to go
ahead and upgrade.
-- Jonathan
On Sat, Sep 21, 2019 at 4:28 PM Philip McGrath
wrote:
> Use `~@` (sine Racket 7.0):
> (syntax-parse #'(1 2 2 a 2 2 b 2 c)
> [(1 (~seq n:nat ...+ x) ...)
>#'((~@ n ... x) ...)])
>
> -P
On 9/21/19 10:15 PM, Jonathan Simpson wrote:
Given this macro that I'm experimenting with:
(syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n
... x) ...)])
How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of
#'((2 2 a) (2 2 b) (2 c)) ?
I don't want t
Den lør. 21. sep. 2019 kl. 22.15 skrev Jonathan Simpson :
> Given this macro that I'm experimenting with:
>
> (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ...
> x) ...)])
>
> How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of
> #'((2 2 a) (2 2 b) (2 c
Use `~@` (sine Racket 7.0):
(syntax-parse #'(1 2 2 a 2 2 b 2 c)
[(1 (~seq n:nat ...+ x) ...)
#'((~@ n ... x) ...)])
-Philip
On Sat, Sep 21, 2019 at 4:15 PM Jonathan Simpson wrote:
> Given this macro that I'm experimenting with:
>
> (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+
Given this macro that I'm experimenting with:
(syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ...
x) ...)])
How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of
#'((2 2 a) (2 2 b) (2 c)) ?
I don't want the parens around the individual sequences that I'
5 matches
Mail list logo