Fix topological sort: Add reverse

This commit is contained in:
sha512sum 2024-04-06 18:37:54 +00:00
parent 2f222e1eeb
commit 97fde27f60

View file

@ -263,9 +263,9 @@ consteval auto TopologicalSort(const DependencyGraph<DependencyGraphElement<Name
response.Push(v); response.Push(v);
}(i); }(i);
}; };
return utempl::Map(std::move(response.data), [](auto&& data){ return (std::move(response.data) | utempl::Map([](auto&& data){
return *data; return *data;
}); }) | utempl::Reverse())();
}; };