[Haskell-cafe] Prolog-style list syntax?

Viktor Dukhovni ietf-dane at dukhovni.org
Tue Jun 29 17:36:13 UTC 2021

On Mon, Jun 28, 2021 at 10:57:16PM -0700, Jeff Clites via Haskell-Cafe wrote:

> Something like this might work:
>     [x, y, z, zs*] = list

But it could be that "*" in this context is defined as a postfix unary
operator, and "zs*" is just another element.

> But I actually like this the best:
>     [x, y, z, zs...] = list

Same here with "...".  Neither "*" nor "..." is built in to Haskell
as a reserved operator.


More information about the Haskell-Cafe mailing list