mod package:hmatrix

Wrapper with a phantom integer for statically checked modular arithmetic.
mod for integer arrays
>>> cmod 3 (range 5)
fromList [0,1,2,0,1]