Nested / complex pattern matching #3958
Closed
nohehf
started this conversation in
Ideas & suggestions
Replies: 1 comment 2 replies
-
You can do that! That code has always been valid in Gleam. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello !
I've seen that you can pattern match nested lists (lists in lists):
but it seems that we cannot do it with different types such as:
Is there a way to do this elegantly ? I think this could be really convenient and is done is some functional languages I believe.
I think it has been a bit discussed here: #1271 (and I do agree with the
case _
addition too)Beta Was this translation helpful? Give feedback.
All reactions