head_pattern

Head pattern stub

head_pattern can only be used as a pattern= argument inside node() to expand a node over the first n elements of a dependency. Calling it directly returns a TypeError.

Returns

A TypeError explaining that patterns are only valid inside node().

See Also

expand_pipeline, sample_pattern, tail_pattern, slice_pattern, cross_pattern, map_pattern