You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slice.Sum is a very useful addition to the toolkit, but I don't understand why you have it returning a float. Wouldn't it be better if the return type matched the type of the slice elements? As it is, you have the potential to lose bits if the slice is int64.
slice.Sum
is a very useful addition to the toolkit, but I don't understand why you have it returning a float. Wouldn't it be better if the return type matched the type of the slice elements? As it is, you have the potential to lose bits if the slice is int64.https://github.com/dablelv/cyan/blob/6263b97ab9c2185800674db169ff99a30e958005/slice/get.go#L198C1-L207C1
For example:
The text was updated successfully, but these errors were encountered: