
29 Jun
2021
29 Jun
'21
1:36 p.m.
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. -- Viktor.