0

The logic on this is basically spaghetti and i would need to rewrite the whole thing or could just remove the dot operator.
On the other hand it at least looks neat and works for integers i guess.
This thing actually helped me with writing neater code as now i know that i need to plan ahead,because my attempts to fix the thing basically made it more and more pasta.