[EMAIL PROTECTED] (Edwin Steiner) writes:
> @score +=^ (4,1) *^ @points;
Sorry, I completely f...ed up the example.
What I was thinking of would be more like:
$score +=^ (4,1) ^* @points;
So one hypo- and one hyper-operator.
Assuming @points is 2-dimensional this would:
1) mu
[EMAIL PROTECTED] (Jeremy Howard) writes:
> Brent Dax wrote:
> > Edwin Steiner:
> > # Could there also be *hypo*-operators, i.e. operators which try to
> > # *lower* (reduce) the dimensionality of their operands to the lowest
> > # common dim. So
[snip]
> > I don't really see the use of hypo-opera
> Well, it's pretty handy to be able to generalise what join() does
> for concat to any abitrary function. It's covered by:
> http://dev.perl.org/rfc/76.html which proposes a new reduce()
> builtin.
C is almost definitely in (in some form). That's why I used it
in E3.
> Edwin's
Brent Dax wrote:
> Edwin Steiner:
> # Could there also be *hypo*-operators, i.e. operators which try to
> # *lower* (reduce) the dimensionality of their operands to the lowest
> # common dim. So
> #
> # $foo = 5 +^ (1,2);
> #
> # would set $foo to (5 + 1) + 2 <...>
> #
>
> I don't really see the u
Edwin Steiner:
# Is this going to concat $a,$b and $c?
#
# $foo = _($a,$b,$c);
#
# (One way to save underlines and spaces.)
# Or would that be:
#
# $foo = _@($a,$b,$c);
That would be C<$foo=join('', $a, $b, $c)>, just like in Perl 5.
# BTW: what will these do?
#
# $a _=_ ($b,$c
Hello!
Is this going to concat $a,$b and $c?
$foo = _($a,$b,$c);
(One way to save underlines and spaces.)
Or would that be:
$foo = _@($a,$b,$c);
BTW: what will these do?
$a _=_ ($b,$c);
$a ^_= ($b,$c); # (better with hypo-operator?, see below)
(WIM in Perl