Documentation ¶
Overview ¶
Package iter provides utilities for working with iterators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Seq ¶
Seq is a sequence of elements.
func Deduplicate ¶
Deduplicate yields elements from elems, skipping duplicates. It always yields the last equal element. The equal function is used to compare elements. The yield function is used to yield elements. If it returns false, the iteration stops. Slice should be sorted before calling this function.
Click to show internal directories.
Click to hide internal directories.