Documentation
¶
Index ¶
- func Start[T any](start T, do func(next T, add func(el T)))
- func StartV[T any](start []T, do func(next T, add func(el T)))
- type Worklist
- func (w *Worklist[T]) Add(el T)
- func (w *Worklist[T]) AddConc(el T)
- func (w *Worklist[T]) GetNext() (ret T)
- func (w *Worklist[T]) GetNextConc() T
- func (w *Worklist[T]) IsEmpty() bool
- func (w *Worklist[T]) IsEmptyConc() bool
- func (w *Worklist[T]) Process(do func(next T, add func(element T)))
- func (w *Worklist[T]) ProcessConc(start T, do func(next T, add func(el T)))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worklist ¶
type Worklist[T any] struct { // contains filtered or unexported fields }
func (*Worklist[T]) GetNextConc ¶
func (w *Worklist[T]) GetNextConc() T
func (*Worklist[T]) IsEmptyConc ¶
func (*Worklist[T]) ProcessConc ¶
func (w *Worklist[T]) ProcessConc( start T, do func( next T, add func(el T)))
Click to show internal directories.
Click to hide internal directories.