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


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