Template Function sequant::transform_node

Function Documentation

template<typename T, typename F, typename = std::enable_if_t<std::is_invocable_v<F, T>>>
auto sequant::transform_node(FullBinaryNode<T> const &node, F fun)
Returns:

A new binary node where each node value is the result of applying fun on the argument node value.