O(n)
O(n)
Returns information on whether or not it made it onto the beam, and also what got evicted
Drains the beam and returns the items in biggest-first order
Drains the beam and returns the items in biggest-first order
(Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.
Represents a beam, which is essentially a priority queue with a maximum size.