diff --git a/p2p/source/notation.hpp b/p2p/source/notation.hpp index 0b331a733..887a7f08c 100644 --- a/p2p/source/notation.hpp +++ b/p2p/source/notation.hpp @@ -226,6 +226,14 @@ inline Any One(const Array &value) { return value[0]; } +template +Array Arr(const std::vector &values) { + Array array; + for (const auto &value : values) + array.emplace_back(value); + return array; +} + } #endif//ORCHID_NOTATION_HPP