| 414 | } |
| 415 | |
| 416 | Result<Datum> Take(const Datum& values, const Datum& indices, const TakeOptions& options, |
| 417 | ExecContext* ctx) { |
| 418 | // Invoke metafunction which deals with Datum kinds other than just Array, |
| 419 | // ChunkedArray. |
| 420 | return CallFunction("take", {values, indices}, &options, ctx); |
| 421 | } |
| 422 | |
| 423 | Result<std::shared_ptr<Array>> Take(const Array& values, const Array& indices, |
| 424 | const TakeOptions& options, ExecContext* ctx) { |