>>108954211
Thanks for proving you are a clinically retarded nocoder.
Here is the part that is the generics you think of:
pub fn mul(a: anytype, b: anytype) mul_map.returnTypeOfFunction(@TypeOf(a), @TypeOf(b))
It's equivalent to
template<typename A, typename B>
pub fn mul(a: A, b: B) : inferReturnType<something[typeof(a), typeof(b)]>
The rest is business logic.
You will never be able to write it differently in any language without losing the specialization, which can also easily be done instead here.
Try it. Make our day.