github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/op/sum/api.go (about) 1 // Package sum provides sum.Of alias 2 package sum 3 4 import ( 5 "github.com/m4gshm/gollections/c" 6 "github.com/m4gshm/gollections/slice/sum" 7 ) 8 9 // Of an alias of the slice.Sum 10 func Of[T c.Summable](elements ...T) T { 11 return sum.Of(elements) 12 }