 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator[T any] interface { // Next attempts to move the iterator to the next element in the set. It // returns false once there are no more elements to return. Next() bool // Value returns the value of the current element. Value should only be called // after a call to Next which returned true. Value() T // Release any resources associated with the iterator. This must be called // after the iterator is no longer needed. Release() }
Iterator defines an interface for iterating over a set.
func Filter ¶
Filter returns an iterator that skips the elements in [it] that return true from [filter].
func FromSlice ¶
FromSlice returns an iterator that contains [elements] in order. Doesn't sort by anything.
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| Package iteratormock is a generated GoMock package. | Package iteratormock is a generated GoMock package. | 
 Click to show internal directories. 
   Click to hide internal directories.