Variadic List
pattern
#710
gefjon
started this conversation in
Ideas and Proposals
Replies: 2 comments 2 replies
-
Just ideations: WDYT about |
Beta Was this translation helpful? Give feedback.
2 replies
-
I was wondering also about pattern matching on tuple too: #280 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have grown tired of writing patterns like
(Cons a (Cons b (Cons c (Nil))))
, and would like to instead be able to write(List a b c)
, like how the Trivialist
pattern works.Bonus points for having a way to express a "rest" argument, like the Trivia
list*
pattern, but I'm not sure how the syntax for that should look.Beta Was this translation helpful? Give feedback.
All reactions