Template Function sequant::inits

Function Documentation

template<typename Rng>
auto sequant::inits(Rng const &rng)

Given a range [a_0, a_1, …, a_n] returns a range of sliced views of lengths 1 through n: [[a_0], [a_0, a_1], …, [a_0, a_1, …, a_n]].