1
0
Files
toddcox-faster/example/path.cpp
David Allemang d4c2ffb8f3 tc::solve() no longer a method of tc::Group.
Group::solve() to tc::solve(Group)
2021-11-01 15:59:10 -04:00

20 lines
412 B
C++

#include "tc/core.hpp"
#include "tc/groups.hpp"
#include <iostream>
int main() {
auto cube = tc::group::B(3);
auto vars = tc::solve(cube);
std::string start;
std::vector<std::string> names = {"a", "b", "c"};
auto words = vars.path.walk(start, names, std::plus<>());
for (const auto &word: words) {
std::cout << (word.empty() ? "-" : word) << std::endl;
}
return 0;
}