These are chat archives for evhub/coconut
addpattern, what about
def func(xs): case xs: match : ... match [x]: ... match xs: ...
@hasufell Yeah, I agree with that, and that's what
addpattern is for. So the best way to do that would be
def func() = ... @addpattern(func) def func([x]) = ... @addpattern(func) def func(xs) = ...
I agree that for small functions like that it can look clunky, but I'm not sure what a better way to do it would be. Thoughts?