add simple test for matrix

This commit is contained in:
chatlanin
2022-03-30 12:49:59 +03:00
parent 2a57555436
commit 393aa844a4
4 changed files with 54 additions and 0 deletions

View File

@@ -24,4 +24,23 @@ namespace hack::utils
return cached->second;
};
}
template<typename T, typename... Args>
auto func_concat(T t, Args... args)
{
if constexpr (sizeof...(args) > 0)
{
return [=](auto... params)
{
return t(func_concat(args...)(params...));
};
}
else
{
return [=](auto... params)
{
return t(params...);
};
}
}
}