Limits the input to the first n events.
head [n:int]Description
Section titled “Description”Forwards the first n events and discards the rest.
head n is a shorthand notation for slice end=n.
n: int (optional)
Section titled “n: int (optional)”The number of events to keep.
Defaults to 10.
Examples
Section titled “Examples”Get the first 10 events
Section titled “Get the first 10 events”headGet the first 5 events
Section titled “Get the first 5 events”head 5