I noticed this syntax in the language tour docs and saw that it's throwing up an (ERROR) node currently:
case xs {
[[]] -> "The only element is an empty list"
[[], ..] -> "The 1st element is an empty list"
[[4], ..] -> "The 1st element is a list of the number 4"
other -> "Something else"
}
I think the gleam parser has a clause for this case here, so I went and made the binding pattern optional
I noticed this syntax in the language tour docs and saw that it's throwing up an
(ERROR)
node currently:I think the gleam parser has a clause for this case here, so I went and made the binding pattern optional