« grep :: Contents :: nl (a.k.a. nl1) »
grep
nl
nl1
head
yield the first items
<iterable> | head[<int>]
>>> from grapevine import * >>> ('foo', 'bar', 'quux') | head(2) | tuple ('foo', 'bar') >>> ('foo', 'bar', 'quux') | head(-2) | tuple ('foo',)
See also