majority ( seq -- elt/f )


Vocabulary
math.extras

Inputs
seqa sequence


Outputs
elt/fan object


Word description
Returns the element of seq that is in the majority, provided there is such an element, using a linear-time majority vote algorithm.

Definition