| 8 | namespace data { |
| 9 | namespace sample { |
| 10 | std::vector<std::string> keys(const Sample& dict) { |
| 11 | std::vector<std::string> keys; |
| 12 | for (auto& kv : dict) { |
| 13 | keys.push_back(kv.first); |
| 14 | } |
| 15 | return keys; |
| 16 | } |
| 17 | |
| 18 | std::shared_ptr<Array> |
| 19 | check_key(const Sample& input, const std::string& key, ArrayType type) { |