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<_>>(),
            })
        });

        MutableFixedSizeListArray::<MutablePrimitiveArray<i32>>::try_from_iter(
            data,
            3,
            DataType::Int32,
        )
        .unwrap()
        .into()
    }
/// 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<_>>(),
            })
        });
        MutableFixedSizeListArray::<MutablePrimitiveArray<i32>>::try_from_iter(
            data,
            3,
            DataType::Int32,
        )
        .unwrap()
        .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 < _ > > ( ) , } ) } ) ; MutableFixedSizeListArray :: < MutablePrimitiveArray < i32 > > :: try_from_iter ( data , 3 , DataType :: Int32 , ) . unwrap ( ) . into ( ) }
Create a fixed size list of 2 value lengths
Create a fixed size list of 2 value lengths
data
T