fn general_remove<OffsetSize: OffsetSizeTrait>(
list_array: &GenericListArray<OffsetSize>,
element_array: &ArrayRef,
arr_n: Vec<i64>,
) -> Result<ArrayRef>Expand description
For each element of list_array[i], removed up to arr_n[i] occurrences
of element_array[i].
The type of each element in list_array must be the same as the type of
element_array. This function also handles nested arrays
([arrow::array::ListArray] of [arrow::array::ListArray]s)
For example, when called to remove a list array (where each element is a list of int32s, the second argument are int32 arrays, and the third argument is the number of occurrences to remove
general_remove(
[1, 2, 3, 2], 2, 1 ==> [1, 3, 2] (only the first 2 is removed)
[4, 5, 6, 5], 5, 2 ==> [4, 6] (both 5s are removed)
)