We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 373b91f commit 07a8c21Copy full SHA for 07a8c21
1 file changed
slice/sliceutil.go
@@ -166,6 +166,7 @@ func MergeItems[V comparable](items ...V) []V {
166
// if a non-zero element was found or not.
167
func FirstNonZero[T comparable](inputs []T) (T, bool) {
168
var zero T
169
+
170
for _, v := range inputs {
171
if v != zero {
172
return v, true
0 commit comments