Revisiting SE-0177: Adding `clamped(to:)`

  • The original discussion also had support for a median free function.

  • Could the new protocol be improved, to become the primary API?
    (i.e. The generic clamped(to:) method would be removed completely,
    but a generic @Clamped(to:) property wrapper could be proposed later.)

  • Should the clamped(to:) method be on Strideable instead?
    (Foundation.Date has all the requirements of Strideable,
    but it doesn't conform yet: FB9452917.)