Not exactly the same, but maybe you can click a sequence with an auxiliary function, as follows:
#include <functional>
#include <cstddef>
#include <iostream>
auto lambda = [](auto... I){
int arr[] = { (std::cout << I << std::endl, 0)... };
(void)arr;
};
template<std::size_t... I>
constexpr auto f(std::index_sequence<I...>) {
return lambda(I...);
}
int main() {
f(std::make_index_sequence<3>());
}