Skip to content

Commit

Permalink
Update README.md (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendc authored Sep 10, 2024
1 parent 381bd1b commit ddca7f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1323,11 +1323,11 @@ ProductAs[int]([]int8{5, 6, 7}) // 210 (Product() will fail as the result overfl
#### FirstNonEmpty
Returns the first non-zero value in the given arguments if found, otherwise returns the zero value.
Returns the first non-empty value in the given arguments if found, otherwise returns the zero value.
This function use `reflection`. Consider using `Coalesce` for generic types.
Values considered "non-zero" are:
- not zero values (0, empty string, false, nil, ...)
Values considered "non-empty" are:
- not empty values (0, empty string, false, nil, ...)
- not empty containers (slice, array, map, channel)
- not pointers that point to zero/empty values
Expand Down

0 comments on commit ddca7f0

Please sign in to comment.