>Tom suggested:

>   > Why not just check @numbers?

>Hear, hear:

>       $sum = @numbers ? reduce ^_+^_, @numbers : 0;

Although we're back to the pain of what happens when @numbers is
really fn().  This is unsatisfactorily nonidempotent (aliapotent? :-)

    $sum = fn() ? reduce ^_+^_, fn() : 0;

--tom

Reply via email to