pub fn same_length_check<A, B>(a: &[A], b: &[B]) -> Result<(), String>
Assert that two slices have the same length and return an error otherwise.