fn general_append_and_prepend<O: OffsetSizeTrait>( args: &[ArrayRef], is_append: bool, ) -> Result<ArrayRef>where i64: TryInto<O>,