github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/break/kv/loop/group/api.go (about)

     1  // Package group provides short aliases for functions thath are used to group key/value pairs retrieved by a loop
     2  package group
     3  
     4  import (
     5  	"github.com/m4gshm/gollections/break/kv/loop"
     6  )
     7  
     8  // Of is a short alias for loop.Group
     9  func Of[K comparable, V any](next func() (K, V, bool, error)) (map[K][]V, error) {
    10  	return loop.Group(next)
    11  }