/// Create a fixed size list of 2 value lengths
Create a fixed size list of 2 value lengths
Create a fixed size list of 2 value lengths
fn create_fixed_size_list_array<U: AsRef<[i32]>, T: AsRef<[Option<U>]>>(
    data: T,
) -> FixedSizeListArray {
    let data = data.as_ref().iter().map(|x| {
        Some(match x {
            Some(x) => x.as_ref().iter().map(|x| Some(*x)).collect::<Vec<_>>(),
            None => std::iter::repeat(None).take(3).collect::<Vec<_>>(),
        })
    });
    let mut list = MutableFixedSizeListArray::new(MutablePrimitiveArray::<i32>::new(), 3);
    list.try_extend(data).unwrap();
    list.into()
}
fn create_fixed_size_list_array < U : AsRef < [ i32 ] > , T : AsRef < [ Option < U > ] > > ( data : T , ) -> FixedSizeListArray { let data = data . as_ref ( ) . iter ( ) . map ( | x | { Some ( match x { Some ( x ) => x . as_ref ( ) . iter ( ) . map ( | x | Some ( * x ) ) . collect :: < Vec < _ > > ( ) , None => std :: iter :: repeat ( None ) . take ( 3 ) . collect :: < Vec < _ > > ( ) , } ) } ) ; let mut list = MutableFixedSizeListArray :: new ( MutablePrimitiveArray :: < i32 > :: new ( ) , 3 ) ; list . try_extend ( data ) . unwrap ( ) ; list . into ( ) }
Create a fixed size list of 2 value lengths
Create a fixed size list of 2 value lengths
data
T