[squeak-dev] [ENH] coercing a number to an interval

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sat Apr 24 19:44:46 UTC 2010


2010/4/24 Stéphane Rollandin <lecteur at zogotounga.net>:
>> Hmm... #coerceToInterval: sounds like converting something into an
>> instance of Interval..
>> so, maybe there could be some other names, like
>>  #putOnInterval:
>>  #withinInterval:
>>
>> 359 withinInterval: (-90 to: 90)
>
> 359 moduloInterval: (-90 to: 90)   ?
>

+1

> Stef
>
>
>
>



More information about the Squeak-dev mailing list