I'm not 100% sure what you're attempting, but it looks like you're duplicating
the behavior of `struct->list`. If you wish to pattern-match on a struct as if
it were a list you could use the `app` match expander:
> (struct posn-3d (x y y))
> (match (posn-3d 1 2 3)
[(app struct->list (list-rest x other))
(apply posn-3d x (reverse other)))
(posn-3d 1 3 2)
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.