1
0

make 'examples' plural

This commit is contained in:
David Allemang
2021-11-06 18:00:05 -04:00
parent 3e783b03cb
commit 24e7ab47d1
5 changed files with 2 additions and 2 deletions

21
examples/path.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include <vector>
#include <string>
#include <iostream>
#include <tc/solver.hpp>
#include <tc/groups.hpp>
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;
}