I want to define functions taking NTuples as arguments but with with size constraints.
The idea would be to declare something like:
foo(x::NTuple{K-1,Int},y::NTuple{K,Int}) where {K} = "ok"
However this is not a correct Julia code.
My question is: how to define such kind of functions in Julia?
(For illustration purpose only): for C++ coders, my question is equivalent to "how to translate this kind of C++ code
template <size_t N>
foo(const std::array<int, N-1>& x, const std::array<int, N>& y)
{ ... }
into well formed Julia code."