BlankSequence

WMA link


BlankSequence[]

__

represents any non-empty sequence of expression elements in a pattern.

BlankSequence[h]

__h

represents any sequence of elements, all of which have head h.

Use a BlankSequence pattern to stand for a non-empty sequence of arguments:

__h will match only if all elements have head h:

The value captured by a named BlankSequence pattern is a Sequence object:

BlankNullSequence