The infix:minmax operator has now been added in Rakudo a4978b9, with a
test added to t/spec/S03-operator/misc.t in r27322.
Closing ticket,
Pm
Patrick R. Michaud via RT wrote:
On Fri, Jun 26, 2009 at 08:37:20AM -0700, Richard Hainsworth via RT wrote:
my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl
While rakudo doesn't implement infix:minmax yet, the operator is
constrained to having two elements on either side, so
On Fri, Jun 26, 2009 at 08:37:20AM -0700, Richard Hainsworth via RT wrote:
my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl
While rakudo doesn't implement infix:minmax yet, the operator is
constrained to having two elements on either side, so the above code
wouldn't work anyway.
I dont quite understand, see below:
Patrick R. Michaud via RT wrote:
On Tue Jun 16 10:14:11 2009, richardh wrote:
my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl
While rakudo doesn't implement infix:minmax yet, the operator is
constrained to having two elements on either side,
On Tue Jun 16 10:14:11 2009, richardh wrote:
my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl
While rakudo doesn't implement infix:minmax yet, the operator is
constrained to having two elements on either side, so the above code
wouldn't work anyway.
It would be good to have some tests for
# New Ticket Created by Richard Hainsworth
# Please include the string: [perl #66640]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66640
my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl
yields an error