How to define matrix type with compile time sizes? C++ code: 
    
    
    template<typename T, size_t N, size_t M>
    struct Matrix {
        T data[M][N];
    };
    
    Matrix<int, 2, 5> m;
    
    
    Run

How to write something like this in Nim?

Reply via email to