handful and interval
Simen Kjaeraas
simen.kjaras at gmail.com
Sun Sep 2 14:30:42 PDT 2012
On Sun, 02 Sep 2012 22:24:17 +0200, Walter Bright
<newshound2 at digitalmars.com> wrote:
> On 9/2/2012 7:45 AM, Andrei Alexandrescu wrote:
>> On 9/2/12 4:22 PM, Andrei Alexandrescu wrote:
>> [snip]
>>
>> The alternative would be to simply define these as functions:
>>
>> if (a.among("struct", "class", "union")) { ... }
>> if (b.between(1, 100)) { ... }
>
> Is between inclusive or not of the endpoints?
struct Between(string boundaries = "[]", T) {
...
}
?
--
Simen
More information about the Digitalmars-d
mailing list