Smalltalk/X has both #min:max: and #clampBetween:and:
in its Magnitude.st.�� Dolphin 7 has neither.
The definition of #clampBetween:and: in ST/X is
clampBetween: min and: max
������ max < self ifTrue: [^max].
������ self < min ifTrue: [^min].
������ ^self
I've deleted the comment because it doesn't help with the question
"what is the CONTRACT for this method?"�� In particular, you would
naturally expect from the name that
������ (x clampBetween: y and: z) between: y and: z
Example:
������ 3 clampBetween: 2 and: 1�� ==>�� 1
������ 1 between: 2 and: 1�� ==>�� false