Documentation ¶
Overview ¶
Package itermerge is a package that provides primitives for an heap of iterators. It's a generic package when used in conjunction with github.com/taylorchu/generic
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IterMerge ¶
type IterMerge struct {
// contains filtered or unexported fields
}
IterMerge is a min-heap of heap elements provided by user-defined iterator of sorted elements.
func IterMergeFrom ¶
IterMergeFrom creates a new heap of iterators from user-defined iterator of sorted elements.
func (*IterMerge) Next ¶
Next returns the next element in the heap, if none ok is false; this method use the same logic as the iterators.
Click to show internal directories.
Click to hide internal directories.