fn comptimeMod(num: anytype, comptime denom: comptime_int) IntFittingRange(0, denom - 1)

Return the mod of num with the smallest integer type

Parameters

num: anytype,
denom: comptime_int,