You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@densh said:
New and constructors are a bit special with respect to how they treat nullary applications (there is no way to distinguish new Foo and new Foo()). You should use ...$arguments to match cases like these.
@densh said (edited on Jan 13, 2017 9:59:59 AM UTC):
Sorry if I was unclear, ...$arguments will match any arity of arguments. then you can check that it's an empty list as a pattern matching guard for example.
@som-snytt said:
For those of us with less than stellar vision.
Dots near unquotee annotate degree of flattening and are also called splicing rank.
..$ expects argument to be an Iterable[Tree] and ...$ expects Iterable[Iterable[Tree]].
The text was updated successfully, but these errors were encountered: