2 ms·
> Basically you are just asking for one of the parameters it was created with. See, you already made a mistake: >>> min(range(10, 1, -3)) 4 4 is neit
by dist-epoch 2mo ago
> Basically you are just asking for one of the parameters it was created with.
See, you already made a mistake:
>>> min(range(10, 1, -3))
4
4 is neither the min or max of the range (their actual names are start and stop), and notice how the max is the first argument and the min is the second argument
Of course, the actual implementation of constant time min/max on range would be trivial.
- d0mine 2mo ago4 is the min of the range (stop (1 here) is never included (by definition. Ask Dijkstra why))
- zahlman 2mo agoRead it again: > neither the min or max of the range (their actual names are start and stop) The point of the parenthetical is that GP is deliberately using the terms non-standardly, meaning the arguments of the `range` call, which makes sense in the context of engaging with GGP.