> In the standard library there is a `min` and a `max` function but there isn't
> a `bounds` function, or a function that takes a value and an upper and lower 
> bound and returns that value if it is 

Perhaps ‘clamp’ would be a better name?
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to