// compare takes the left and right objects and applies the comparator function to them.
compare takes the left and right objects and applies the comparator function to them.
// compare takes the left and right objects and applies the comparator function to them .
func (e Uint8) compareTypes(r Object, f func(uint8, uint8) Boolean) (Boolean, error) {
	if r == nil {
		return Boolean(false), nil
	}
	switch right := r.(type) {
	case Uint8:
		return f(e.Value(), right.Value()), nil
	case *Uint8:
		return f(e.Value(), right.Value()), nil
	default:
		return false, fmt.Errorf("cannot cast %T (%#v) to object.Uint8", r, r)
	}
}
func ( e Uint8 ) compareTypes ( r Object , f func ( uint8 , uint8 ) Boolean ) ( Boolean , error ) { if r == nil { return Boolean ( false ) , nil } switch right := r . ( type ) { case Uint8 : return f ( e . Value ( ) , right . Value ( ) ) , nil case * Uint8 : return f ( e . Value ( ) , right . Value ( ) ) , nil default : return false , fmt . Errorf ( " " , r , r ) } }
compare takes the left and right objects and applies the comparator function to them.
compare takes the left and right objects and applies the comparator function to them .