3 ms·
Look at this http://stackoverflow.com/questions/11270547/go-big-int-factorial-with-recursion http://stackoverflow.com/questions/11270547/go-big-int-facto... and
by khyryk 12y ago
Look at this http://stackoverflow.com/questions/11270547/go-big-int-factorial-with-recursion http://stackoverflow.com/questions/11270547/go-big-int-facto... and compare how the function looks with int and with big.Int. Interestingly, big.Int has a method MulRange, which does exactly what the function would otherwise do, but this won't be the case the majority of the time. Given the extra tedium involved, someone working heavily with vectors, matrices, big numbers, etc., would certainly care about operator overloading.