On Sun, Jul 5, 2020 at 6:15 AM MRAB <python@mrabarnett.plus.com> wrote:> clamp(value: Number, minimum: Union[Number, Iterable[Number]], maximum: Union[Number, Iterable[Number]])
>What would that return? What if the iterables were two differentlengths?If anything, I would accept an iterable for the value, and return an iterator.min() with an iterable is essentially a reduce. clamp() with an iterable would be a map.