Hi

At 20:11 +0200 2010-07-14, Moritz Lenz wrote:
I'll also fix some minor nits, like simplifying
my $middle = $l + floor( ($r-$l)/2);
to
my $middle = floor  ($r + $l) / 2


Since we often need to compute (correctly and efficiently)
the middle point of two numberish things,
perhaps a better approach would be
to add to Perl6 a function named 'mid'
so that the above could be written

my $middle = mid($r, $l)

What is the procedure for proposing this in to Perl6?

Regards,
Todd Olson

Reply via email to