forked from mirror/toddcox-faster
One header per class, except for Group and SubGroup which are coupled. - Action - Cosets - Path - Rel
22 lines
396 B
C++
22 lines
396 B
C++
#include "tc/core.hpp"
|
|
#include "tc/groups.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
auto cube = tc::group::B(3);
|
|
auto vars = cube.solve();
|
|
|
|
auto words = vars.path.walk<std::string, std::string>(
|
|
"",
|
|
{"a", "b", "c"},
|
|
[](auto a, auto b) { return a + b; }
|
|
);
|
|
|
|
for (const auto &word : words) {
|
|
std::cout << word << std::endl;
|
|
}
|
|
|
|
return 0;
|
|
}
|