At 6:06 PM -0700 5/6/06, Darren Duncan wrote:
You can do it simply, kind of like this:

class Point { has Real $x; has Real $y; };

subset Interval of Range where { all( .items ).does(Real) };

Er, you should read 'Real' as 'Num' (I originally meant Rational, which no longer exists in the newest S06); I meant to say:

class Point { has Num $x; has Num $y; };

subset Interval of Range where } all( .items ).does(Num) };

-- Darren Duncan

Reply via email to