| 50 | |
| 51 | template <typename... SliceArgs> |
| 52 | DatumVector SliceArrays(const DatumVector& inputs, SliceArgs... slice_args) { |
| 53 | DatumVector sliced; |
| 54 | for (const auto& input : inputs) { |
| 55 | if (input.is_array()) { |
| 56 | sliced.push_back(*input.make_array()->Slice(slice_args...)); |
| 57 | } else { |
| 58 | sliced.push_back(input); |
| 59 | } |
| 60 | } |
| 61 | return sliced; |
| 62 | } |
| 63 | |
| 64 | ScalarVector GetScalars(const DatumVector& inputs, int64_t index) { |
| 65 | ScalarVector scalars; |
no test coverage detected