github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/loopexamples/type.go (about)

     1  package loopexamples
     2  
     3  type (
     4  	Loop[T any]           func() (element T, ok bool)
     5  	KVLoop[K, V any]      func() (key K, value V, ok bool)
     6  	BreakLoop[T any]      func() (element T, ok bool, err error)
     7  	BreakKVLoop[K, V any] func() (key K, value V, ok bool, err error)
     8  )