Closed GuillemGongora closed 3 years ago
Yeah, have to redesign this indeed. It originated from the fact that you can also say spread(10 5)
, which will then use 5 als the "lower" bound and set a 0 as the higher bound (because there is no argument there). But then I swap the arguments to make sure the lower = 0 and higher = 5. Only this means that the arguments also get swapped when the arguments are both added.
Now included in e105a4eebdaa2f6f39342545822dc7ef44bf5c85
In the
ring spread()
family, the output is always ordered from low to high, independently from the order of the arguments.spreadInclusive(4 1 4)
outputs the same asspreadInclusive(4 4 1)
. This could save a line for an unnecessaryring invert()
.