tadeuzagallo / verve-lang

A functional language for the working hacker
https://verve-lang.org
MIT License
346 stars 7 forks source link

Add support for List literal patterns #40

Closed tadeuzagallo closed 7 years ago

tadeuzagallo commented 7 years ago
match [1, 2] {
  case [x]: /* ... */
  case [x, ...y]: /* ... */
  case [x, ...]: /* ... */
}