clamp / median / range

Here are a few tangentially-related ideas vaguely near the theme of comparison operators. comparison style clamp style clamp is median clamp in range range style style clash? comparison style Some languages such as BCPL, Icon, Python have chained comparison operators , like if min <= x <= max : ... In languages without chained comparison, I like to write comparisons as if they were chained, like,…