func (q Query) MaxFloat64() (min float64, err error) {
	if q.err != nil {
		err = q.err
		return
	}
	if len(q.values) == 0 {
		return 0, ErrEmptySequence
	}
	_, maxIndex, err := minMaxFloat64s(q.values)
	if err != nil {
		return
	}
	return q.values[maxIndex].(float64), nil
}
// MaxFloat64 returns the element with biggest value in the leftmost of the
// sequence. Elements of the original sequence should only be float64 or
// ErrTypeMismatch is returned. If the sequence is empty ErrEmptySequence is
// returned.
//
// Example:
//	max, err := From([]float64{1e-9, 2e10, -1e-10, -1}).MaxFloat64() // max is 2e10
MaxFloat64 returns the element with biggest value in the leftmost of the
sequence. Elements of the original sequence should only be float64 or
ErrTypeMismatch is returned. If the sequence is empty ErrEmptySequence is
returned.


// MaxFloat64 returns the element with biggest value in the leftmost of the // sequence . Elements of the original sequence should only be float64 or // ErrTypeMismatch is returned . If the sequence is empty ErrEmptySequence is // returned . // // Example : // max err : = From ( [] float64 { 1e - 9 2e10 - 1e - 10 - 1 } ) . MaxFloat64 () // max is 2e10
func (q Query) MaxFloat64() (min float64, err error) {
	if q.err != nil {
		err = q.err
		return
	}
	if len(q.values) == 0 {
		return 0, ErrEmptySequence
	}
	_, maxIndex, err := minMaxFloat64s(q.values)
	if err != nil {
		return
	}
	return q.values[maxIndex].(float64), nil
}
func ( q Query ) MaxFloat64 ( ) ( min float64 , err error ) { if q . err != nil { err = q . err return } if len ( q . values ) == 0 { return 0 , ErrEmptySequence } _ , maxIndex , err := minMaxFloat64s ( q . values ) if err != nil { return } return q . values [ maxIndex ] . ( float64 ) , nil }
MaxFloat64 returns the element with biggest value in the leftmost of the
sequence.
MaxFloat64 returns the element with biggest value in the leftmost of the sequence .