1
0

add walk to path

This commit is contained in:
2020-01-07 23:47:05 -05:00
parent c5f87942c9
commit 2ca163c325
3 changed files with 39 additions and 8 deletions

View File

@@ -7,10 +7,20 @@ int main() {
auto cube = tc::group::B(3);
auto vars = cube.solve();
for (size_t target = 1; target < vars.size(); target++) {
auto &action = vars.path.get(target);
std::cout << action.from_idx << " * " << action.gen << " = " << target << std::endl;
auto words = vars.path.walk<std::string>(
"",
{"a", "b", "c"},
[](auto a, auto b) { return a + b; }
);
for (const auto &word : words) {
std::cout << word << std::endl;
}
// for (size_t target = 1; target < vars.size(); target++) {
// auto &action = vars.path.get(target);
// std::cout << action.from_idx << " * " << action.gen << " = " << target << std::endl;
// }
return 0;
}