#include "trie.hpp" std::vector> flatten(const trie& t) { std::vector> ret; t.for_each([&ret](auto&& w) { ret.push_back(w); }); return ret; }