func (q Query) Sum() (sum float64, err error) {
	if q.err != nil {
		err = q.err
		return
	}
	sum, err = sumMixed(q.values)
	return
}
// Sum computes sum of numeric values in the original sequence.
// See golang spec for numeric types. If sequence has non-numeric types or nil,
// ErrNan is returned.
//
// This method has a poor performance due to language limitations.
// On every element, type assertion is made to find the correct type of the
// element.
//
// Example:
//	mixedArr = {}interface[]{1, int8(2), uint(3), float64(4.4)}
//	sum, err := From(mixedArr).Sum() // sum is 10.4
//	// or
//	sum, err := From([]int{1,2,3,4,5}).Sum() // sum is 15.0
Sum computes sum of numeric values in the original sequence.
See golang spec for numeric types. If sequence has non-numeric types or nil,
ErrNan is returned.

This method has a poor performance due to language limitations.
On every element, type assertion is made to find the correct type of the
element.


// Sum computes sum of numeric values in the original sequence . // See golang spec for numeric types . If sequence has non - numeric types or nil // ErrNan is returned . // // This method has a poor performance due to language limitations . // On every element type assertion is made to find the correct type of the // element . // // Example : // mixedArr = {} interface [] { 1 int8 ( 2 ) uint ( 3 ) float64 ( 4 . 4 ) } // sum err : = From ( mixedArr ) . Sum () // sum is 10 . 4 // // or // sum err : = From ( [] int { 1 2 3 4 5 } ) . Sum () // sum is 15 . 0
func (q Query) Sum() (sum float64, err error) {
	if q.err != nil {
		err = q.err
		return
	}
	sum, err = sumMixed(q.values)
	return
}
func ( q Query ) Sum ( ) ( sum float64 , err error ) { if q . err != nil { err = q . err return } sum , err = sumMixed ( q . values ) return }
Sum computes sum of numeric values in the original sequence.
Sum computes sum of numeric values in the original sequence .