On Tue, Apr 1, 2008 at 1:44 AM, Xiao Yafeng <[EMAIL PROTECTED]> wrote: > I've read Synopsis and I wondered why to treat max and min as > operator. IMHO, view them as list functions is more reasonable. Like > below: > > @test.max
Which is how you would probably call it in Perl6. Or else max(@test) > > is clearer than > > @test[0] max @test[1] or [max] @test. Which is not legal Perl6. "max" and "min" may be called "operators", but that doesn't mean they're INFIX operator. In Perl6, just like in Perl5, all the builtin "functions" are really defiend as operators, including "print" etc. But you can always call an operator as if it were a function/method, and in most cases you will. pugs> [1,2,3].max 3 pugs> min(1,2,3) 1 -- Mark J. Reed <[EMAIL PROTECTED]>