use vortex_error::VortexResult;
use crate::arrays::primitive::PrimitiveArrayExt;
use crate::match_each_native_ptype;
pub(super) fn check_primitive_identical<L, R>(lhs: &L, rhs: &R) -> VortexResult<bool>
where
L: PrimitiveArrayExt,
R: PrimitiveArrayExt,
{
match_each_native_ptype!(lhs.ptype(), |P| {
Ok(lhs.as_slice::<P>() == rhs.as_slice::<P>())
})
}