# Using \`match\` ellipses on multiple elements?

**URL:** https://racket.discourse.group/t/using-match-ellipses-on-multiple-elements/2891
**Category:** General
**Created:** [April 28, 2024, 9:37pm UTC](https://racket.discourse.group/t/using-match-ellipses-on-multiple-elements/2891 "2024-04-28T21:37:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)
#### Post date: [April 28, 2024, 9:37pm UTC](https://racket.discourse.group/t/using-match-ellipses-on-multiple-elements/2891/1 "2024-04-28T21:37:25Z")

</div>

Context: getting creative with target language syntax in a PL course.

I want to use `match` ellipses to apply to multiple elements. `syntax/parse` has a `~seq` feature that handles this. Here's what I would like to write, imagining that the `~seq` feature was present in match:

```scheme
(match '{locals : x = 3 : y = {+ 4} : {+ x y}}
  [(list 'locals ': (~seq vars '= var-exprs ':) ... expr)
   (list vars var-exprs expr)])

```

In other words, I want the ellipsis to apply to vars, the equal sign, the var-exprs, and the trailing colon. Is there a way to do this that I'm missing?

(To be clear: it's very easy to do this by soaking up all the elements between the first and last, and just using a helper function. The question is just whether there's match magic that can make this fly.)

---

<div class="post-metadata">

### Author: ![samth](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/samth/32/3_2.png) [@samth](https://racket.discourse.group/u/samth)
#### Post date: [April 29, 2024, 1:08am UTC](https://racket.discourse.group/t/using-match-ellipses-on-multiple-elements/2891/2 "2024-04-29T01:08:19Z")

</div>

No, match does not implement this portion of the syntax-parse algorithm.
